Design Studio
Colour Palette from Image
Choose an image and get its dominant colours as a palette, each with its HEX, RGB and HSL value and the share of the picture it covers, plus ready-to-paste CSS custom properties. Pick how many colours you want and ignore near-white or near-black backgrounds. The image is shrunk and analysed in your browser with median-cut quantisation and is never uploaded. The palette lists the most common colours, which are not always the ones a designer would choose, and it does not check contrast.
How to use it
- Choose an image.
- Set the number of colours and whether to ignore white or black.
- Copy a single colour or the whole set as CSS.
Example
A photo of a sunset might give six colours: two deep oranges, a pink, a dark blue-grey, a warm yellow and a near-black, each with a percentage of the image.
Next steps
Convert values with the colour converter and check readability with the colour contrast checker.
Questions
How are the colours chosen?
Median cut repeatedly splits the pixels into groups along the colour range that varies most, then averages each group. Larger groups give the colours with a bigger share.
Why does the palette include muddy colours?
Averaged colours can look different from the original. Raise the number of colours or ignore backgrounds to get cleaner results.
Should I use these for a brand palette?
Use them as inspiration. Check text and background pairs with the colour contrast checker and refine by eye.
Is my image uploaded?
No. It is analysed in your browser.
Can it read transparent PNGs?
Yes. Fully or mostly transparent pixels are ignored.
Get practical SEO tips by email
Occasional emails with new guides and tools. Confirm by email first; unsubscribe in one click.