Color picker from image
Point at any pixel of a photo, logo or screenshot and copy its exact colour code.
Click or tap the image to pick a colour. On a keyboard, focus the image, move with the arrow keys and press Enter.
| HEX | ||
|---|---|---|
| RGB | ||
| HSL | ||
| Nearest CSS name | ||
Picked so far
Nothing picked yet.
No photo to hand?
How to use it
- Drop an image on the box, paste a screenshot, or choose a file.
- Move over the image: the loupe magnifies the pixels and the codes update as you go.
- Click or tap to keep a colour. Kept colours collect below, so you can build a set.
- Copy a single code, or Copy all HEX codes for the whole set.
HEX, RGB and HSL: which code to use
All three describe the same colour. Pick the one your app asks for:
| Format | Example | Used in |
|---|---|---|
| HEX | #E8A04A | CSS, Figma, Canva, most design apps |
| RGB | rgb(232, 160, 74) | CSS, Photoshop, Office colour dialogs |
| HSL | hsl(33, 77%, 60%) | CSS, when you want to tweak lightness or saturation |
Why a pixel can differ from what you see
Photos are made of slightly different neighbouring pixels, especially after JPEG compression, so two clicks a pixel apart can give different codes. Use the loupe to land in the middle of a flat area. For the main colours of a whole image rather than one pixel, use the palette generator on this site.
Colour names
The name shown is the closest of the 148 named colours CSS understands, measured by how different two colours look to the eye, not by raw numbers. It is a handy label, not an official name for the colour.
Related tools
Questions people ask
How do I find the HEX code of a colour in an image?
Drop the image here, click the colour, and copy the HEX value shown next to the swatch.
Can I pick colours from a screenshot?
Yes. Take the screenshot, then paste it here with Ctrl+V or Cmd+V.
Does it work on a phone?
Yes. Touch and drag: the loupe sits above your finger, and the colour is kept when you lift it.
Can I get the colour name too?
The nearest CSS colour name is shown for every pick.
Is the image uploaded?
No. Colours are read from the image in your browser.