Color Picker
Pull the exact colour out of any image — as HEX, RGB or HSL, ready to paste.
Runs in your browser — your files are never uploaded
Drop an image here
or
JPG, PNG or WebP, up to 30 MB. The image is read on your device and never uploaded.
About the Color Picker
You have a screenshot of a design, a photograph with a colour you want to use, or a logo whose exact brand blue nobody can find written down. Tap the pixel and this gives you the value, in the three notations anyone actually pastes into code: HEX, RGB and HSL.
The reading comes from the image's own pixels, not from what the screen is showing. That distinction matters — the picture is scaled to fit the page, and sampling a scaled copy returns a blend of neighbouring pixels rather than the colour that is genuinely there.
Alongside the picker, the tool works out the handful of colours the image is mostly made of. It does that by grouping near-identical shades together and averaging within each group, so a photograph returns six usable colours rather than six thousand greys a pixel apart. Tap any of them to select it.
Each colour also shows its contrast against black and against white. If you are choosing a colour for text or a button, that number is the difference between a design that everyone can read and one that fails an accessibility audit: body text needs a ratio of at least 4.5:1.
The image is read on your device and never uploaded, so pulling colours from an unreleased design or an internal screenshot is safe.
How to use the Color Picker
Add an image
A screenshot, a photograph, a logo — anything your browser can display.
Tap the colour you want
Move over the image to preview, tap to lock it in. The value is read from the image's real pixels.
Or take one from the palette
The main colours in the picture are listed with the share of the image each covers. Tap one to select it.
Copy the notation you need
HEX for CSS and design tools, RGB for canvas and image code, HSL when you want to adjust the colour afterwards.
Frequently asked questions
Is the colour exact?
When would I use HSL rather than HEX?
How are the palette colours chosen?
What does the contrast figure mean?
Is my image uploaded?
You may also need
Image to Base64
Turn an image into a data URI you can paste straight into CSS or HTML.
Image Converter
Convert between JPG, PNG and WebP — whatever you have, whatever you need.
Image Compressor
Make JPG, PNG and WebP files smaller without a visible drop in quality.
Image Resizer
Resize an image to exact pixel dimensions, with the aspect ratio locked or free.