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.
Click the image to pick a pixel color.
Palette
Click a color to copy its HEX code.
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
- Choose or drop an image (PNG, JPG, WebP, GIF, AVIF…).
- Pick the method (average or real) and the number of colors.
- Click a swatch to copy it, or click the image to pick an exact pixel.
- 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.