Pick colours from an image
Get HEX, RGB, and HSL from any pixel, and an image's main colours.
Free, no sign-up, no credit card. Your files stay on your device.
How to pick colours from an image
- Choose an image, or drop it on the page.
- Click the image to pick a colour, then copy its HEX, RGB, or HSL code.
- Select "Find main colours" for the image's palette.
What to know
HEX, RGB, or HSL
- HEX, like #3a7bd5, is what CSS, most design apps, and brand guides ask for.
- RGB gives the red, green, and blue amounts from 0 to 255. Office apps and many paint programs take it.
- HSL gives the hue in degrees, then saturation and lightness in percent. Change the lightness to get a darker or lighter shade of the same colour.
How the main colours are found
The picture is drawn at about a quarter of a megapixel, and up to 100,000 of its pixels are sampled. Similar colours are merged into 5, 8, or 12, most common first, each with the share of the picture it covers. Pixels more than half see-through are skipped, so a logo on a clear background gives the logo's colours. Copy all colours gives every HEX code in one line, separated by commas.
What a picked colour leaves out
The codes describe the colour only, not how see-through the pixel is. JPG photos also vary a little from pixel to pixel, even in areas that look flat, so two clicks side by side can give slightly different codes. For one colour that stands for a whole area, use Find main colours.
If something goes wrong
My HEIC photo won't open
The picker opens JPG, PNG, WebP, GIF, BMP, and AVIF, the formats your browser can show itself. Convert HEIC photos first. Use HEIC to JPG.
The colour is a little off from the one on the website
A screenshot or a saved copy may have been compressed, which shifts colours slightly, most of all near edges and text. Pick from the original file if you have it, and click in the middle of a large flat area.
Questions
How do I get the HEX code of a colour in a picture?
Click that spot. The colour shows with its HEX, RGB, and HSL codes, each with a Copy button.
How exact is it?
It reads the exact pixel you click from the full picture. For very large pictures over 16 megapixels, it reads from a copy reduced to fit your device's memory.
How do I get a colour palette from an image?
Choose the image, pick 5, 8, or 12 colours, and select Find main colours. You get its main colours with their hex codes, most common first, and "Copy" all colours copies every hex code in one line.
How is the palette found?
The tool looks at the whole picture, groups similar colours, and lists the main ones with how much of the picture each covers. See-through parts are ignored.
Can I use the keyboard?
Yes. Tab to the image and move the marker with the arrow keys; hold Shift to move faster.
Are my images uploaded?
No. Your files are processed on your device. We never upload them.