How to use Color Palette from Image
- Add an image (photo, illustration, logo, screenshot).
- Choose how many colours you want (5, 8, 12 or 16).
- Click Start: the dominant colours appear with HEX and RGB codes and their share of the image.
- Click a colour to copy its HEX code, or download the palette as CSS variables.
How Color Palette from Image works
How the colours are found
The picture is reduced to about 160 pixels wide, then the tool uses the 'median cut' algorithm: it groups all pixels into a box of colours and repeatedly splits the box with the most pixels along its widest colour channel. Each final box gives one colour, the average of its pixels. Transparent pixels are ignored.
What the percentage means
Each colour shows the share of the image's pixels it represents. Colours are sorted from the most to the least present, so the first one is usually the background or the main tone.
Using the palette
The CSS file declares variables (--color-1, --color-2…) you can paste into a stylesheet. HEX codes also work in Canva, Figma, PowerPoint and most design tools.
Tips for the best result
- To build a brand palette from a logo, ask for 5 colours: fewer colours give cleaner results on flat graphics.
- For photos, 8–12 colours capture the mood better.
- Check contrast between text and background colours before using them on a website (aim for a ratio of at least 4.5:1).
- Very small details (a thin line) may not appear because they represent too few pixels.
Private by design
Color Palette from Image runs entirely inside your browser, in background threads (Web Workers) that use your device's own processor. Your files are never uploaded to our servers, so nobody else can see them, and processing starts instantly with no upload or download wait. Once the page has loaded, the tool keeps working even without an internet connection.
Related tools
Frequently asked questions
How accurate are the colours?
Each colour is the average of a group of similar pixels, so it is an exact colour of the image's palette, not of one specific pixel. For one precise pixel, use a colour picker.
Why is a colour I see missing?
If it covers very few pixels, it is merged with a similar, more frequent colour. Ask for more colours.
Can I copy the codes?
Yes, click any colour to copy its HEX code.
Is my image uploaded?
No, the analysis runs in your browser.
Can I get the palette of a website?
Take a screenshot of the page and add it here.
What is the CSS file for?
It defines your colours as CSS variables (--color-1…) that you can paste into any stylesheet and reuse in your design.