Tools › Images
Image Palette
Find the main colours in a photo, logo or screenshot, with how much of the picture each covers, as hex codes and CSS variables.
About this tool What it's for, how to use it and an example
What it's for
Pull the main colours out of a picture: a photo you want to match, a logo whose brand colours you need, or a screenshot of a design. Each colour comes with its hex code and how much of the picture it covers.
For example, when you’re building a web page to match a company’s logo and only have the logo as an image, drop it here and copy the colours as CSS variables.
How to use it
Choose an image, or drop or paste one onto the page, and pick how many Colours you want (remembered). The
colours appear most used first, each with its hex code and share of the picture; choose one to open it in Colour
Converter, for its RGB, HSL and OKLCH values, contrast checks, tints and shades. Copy hex codes copies one
code per line, and Copy CSS a :root block of CSS custom properties.
Example
Make a QR code in the QR Code tool and download its PNG. Choose that PNG here with Colours set to 3: only
two colours are found, #000000 and #ffffff, as a QR code has nothing else.
Good to know
The colours are averages of groups of similar pixels (k-means clustering), so a small but striking accent in a large photo may merge into a nearby colour: ask for more colours to separate it. Fully transparent pixels are ignored and partly transparent ones count as solid. The image is shrunk to 200 pixels across before it’s read.
The image is shrunk to 200 pixels across first, so large photos are quick. Fully transparent pixels are ignored.
Private: this tool runs in your browser. Nothing you type, paste or choose leaves this page.
Saved you a few minutes? Say thanks with a coffee.
Something wrong with this tool, or missing from it? Report a bug or suggest a feature.