Pick a colour
Pull the main colours out of a photo, logo or screenshot as hex codes, ranked from most to least common.
or drop it here · files stay on your device
We count formats and sizes. Filenames stay private unless you opt in.
- Runs on your device
- No sign-up or watermark
- No fixed file size cap
The short answer
To get the colours from an image, open it here, choose 3 to 10 colours and press Read the palette. The tool counts colours across the picture and lists the dominant ones as hex codes, most common first, with the image dimensions. It only reads the image, in your browser, so nothing is uploaded and no file is created.
How to find the hex colour codes in an image
- STEP 1
Open one image
Choose a photo, logo or screenshot. JPEG, PNG, WebP, HEIC and other common formats are read.
- STEP 2
Choose the palette size
Set Palette size between 3 and 10 colours. The default is 6.
- STEP 3
Read the palette
Press Read the palette. The dominant colour and the next most common ones appear as hex codes.
- STEP 4
Copy the hex codes
Copy the codes you need into your CSS, design tool or slides. No file is created or downloaded.
What a dominant colour palette is
A photo can contain hundreds of thousands of distinct colour values, most of them tiny variations of each other. A palette groups those variations into a handful of representative colours and ranks them by how much of the image they cover.
Hex codes such as #1F6FEB write a colour as three pairs of hexadecimal digits for red, green and blue. They are what CSS, design tools and brand guidelines use, so a palette in hex can be pasted straight into a stylesheet, Figma or a slide theme.
A palette is useful for matching a web page or presentation to a photo, recovering a brand colour from a logo when you have no style guide, or picking text colours that sit well with an image.
What survives, and what does not
The image is reduced to at most 160 pixels wide, which is plenty to judge colour proportions and keeps the analysis instant. Each pixel is sorted into one of 4,096 colour buckets (16 levels per channel); pixels that are mostly transparent are ignored. Buckets are ranked by pixel count, and each reported colour is the average of the pixels in its bucket, so it reflects colours actually present in the image.
What you keep
Your image, untouched; this tool only reads it
Colour proportions, with the most common colour listed first
Accurate averages of real pixels rather than invented colours
What you lose
Clicking a point to read one exact pixel; this lists a palette instead
RGB, HSL or CMYK values; colours are shown as hex only
Very small accents, which can be outranked by large areas of similar tone
Honest limits are published on every tool page. If a tool cannot do something well, it says so here rather than letting you find out after the download.
Pick a colour at a glance
| Input | JPEG, PNG, WebP, AVIF, GIF, HEIC, TIFF |
|---|---|
| Output | Hex codes on screen; no file |
| Palette size | 3 to 10 colours |
| Method | Bucketed colour count on a 160 px wide sample |
| Runs on | Your device, in the browser |
| Works offline | After the first visit |
If something goes wrong
The palette is mostly white or grey
Large plain areas such as a white background dominate the count. Crop the image to the part you care about first, then read the palette again.
A small accent colour is missing
Colours covering only a tiny part of the image rank low. Increase Palette size to 10, or crop in on the accent.
Pick a colour questions
How do I find the hex code of a colour in an image?
Open the image here and read the palette: the most common colours are listed as hex codes, ready to paste. If you need the exact value of one specific pixel, use the eyedropper in your design app instead, since this tool reports a ranked palette rather than a point you click.
How do I get the main colours of a logo?
Open the logo and set Palette size to 3 or 4. Transparent areas are skipped, so a logo on a transparent background gives its brand colours directly. On a white background, white will usually appear in the list too.
Does it give RGB values as well as hex?
It shows hex only. Each hex code converts directly to RGB: the three pairs are red, green and blue in base 16, so #FF8800 is RGB 255, 136, 0.
Is my image uploaded to read its colours?
No. The analysis runs on a small copy of the image inside your browser tab. Nothing is sent anywhere, and nothing is written or downloaded either.
Why is the hex code slightly different from my brand colour?
Each swatch is the average of similar pixels, and image compression and anti-aliased edges shift colours a little. Treat the result as a very close match, and check it against the official value if one exists.