Skip to content
Language:en

Extract a color palette from an image

Extract the main colors of a photo, averaged or exactly as they appear, with an eyedropper and exports.

Runs entirely in your browser. Your files never leave your device.

About this tool

Drop a photo, an illustration or a logo and get its main colors in a second, with the share of the image each one covers. Two methods are available because they answer different needs.

The average method groups similar pixels and gives the mean color of each group: a smooth, harmonious palette that sums up the mood of a photo, ideal for a website theme or a presentation. The real method keeps colors that actually exist in the image, the most frequent ones, kept distinct from each other: the right choice to match a logo or a product exactly. Click anywhere on the picture to pick a single pixel, then export the palette in the format your tools use.

How it works

  1. Choose or drop an image (PNG, JPG, WebP, GIF, AVIF…).
  2. Pick the method (average or real) and the number of colors.
  3. Click a swatch to copy it, or click the image to pick an exact pixel.
  4. Export as HEX list, CSS variables, JSON, Tailwind config, GIMP palette or PNG.

The image is analysed in your browser on a reduced copy of about 160 pixels, which is fast and accurate enough for colors. Transparent pixels are ignored, so logos on a transparent background give their real colors.

Worked example

You are building a website for a bakery and have a photo of its storefront. Drop it and ask for 5 colours with the average method: you get a soft palette, perhaps a cream, two warm browns, a muted green from the awning and a dark grey, each with its share of the image. Export it as CSS variables and paste them into your stylesheet.

To match the bakery’s logo exactly, switch to the real method on the logo file, or click the red of the logo to pick that exact pixel and copy its hex code.

Good to know

  • Use the largest, least compressed version of an image: JPG artefacts create in-between colours that pollute the palette.
  • For a website, check the contrast of text and background pairs with the contrast checker before using the colours.
  • Five or six colours are usually enough for a theme; more colours make the differences between them hard to see.

Frequently asked questions

What is the difference between “average” and “real” colors?
Average colors are the centers of groups of similar pixels: they may not match any single pixel but represent the image well. Real colors are taken as they are from the image, which is better when you need an exact brand color.
Why do I get a different palette with the same number of colors?
With the real method, colors too close to one already chosen are skipped to keep the palette varied. Increase the number of colors to see more shades.
Is my image uploaded?
No, it is read and analysed by your browser only. You can use it with confidential designs or personal photos.
Can I get the exact color of one spot?
Yes, click on the image: the color of that pixel is shown and copied to your clipboard.