Color Palette Extractor
Extract the dominant colours from a photo or design: 2 to 12 colours with their share, copyable as HEX or RGB, and exportable as CSS variables.
Runs in your browser. What you enter is kept for 30 days to improve Toolgrid, then deleted.
How to use the Color Palette Extractor
- 1 Choose an image.
- 2 Set the number of colours.
- 3 Copy single colours, the list or the CSS variables.
About the Color Palette Extractor
The palette extractor finds the colours that dominate an image. It groups similar pixels with the k-means clustering method and shows the average colour of each group, sorted by how much of the image it covers. This gives you a ready-made palette from a photo, a logo, a painting or a website screenshot.
The bar under the image shows the proportions. Fewer colours give the main tones, more colours also pick up accents. The same image always gives the same palette.
Copy colours as HEX or RGB, or export them as CSS custom properties (--color-1, --color-2, …) to use straight away in a stylesheet. Use the colour picker tool to get the exact colour of a single pixel instead.
Frequently asked questions
How are the colours chosen?
With k-means clustering: pixels are grouped by colour similarity and each group is represented by its average colour.
Why are the colours slightly different from the image?
Each palette colour is an average of many similar pixels, so it can differ slightly from any single pixel.
How many colours should I extract?
5 or 6 gives a usable palette for most designs; more colours also show the accents.
Can I get the exact colour of one pixel?
Use the Image Color Picker for that.