Extract Color Palette
Gives you the dominant colors in an image as a palette.
This tool runs on JavaScript. To use it, turn on JavaScript in your browser and reload the page.
COUNT THE COLORS IN YOUR IMAGE.
Extract Color Palette finds the dominant colors of a photo or design and returns them as a palette. You choose the number of colors between 2 and 16; the default is 8. Each color is shown with its HEX code, RGB value and the percentage of the image it covers, sorted from most to least used. It is used to pull brand colors from a logo, pick presentation colors that match a photo, or see the color balance of a design.
The method is color quantization: the image is first reduced to a copy of at most 200 pixels and to 48 candidate colors; near-identical shades are merged, then the number of colors you chose is picked to represent the image best, and the pixels covered by each color are counted. This way a small but distinct color (an accent in a logo, a red object in a photo) doesn’t drop out of the palette, and shades of the same color don’t fill it; if the image has fewer distinct colors than you asked for, the palette comes out shorter. The reduction doesn’t change the result; it only speeds things up. Transparent pixels are left out of the count, so the palette of a logo with a transparent background isn’t mistakenly filled with black. The report can be downloaded as JSON. To get the color of a single pixel, use “Image Color Picker”; to derive matching colors from a main color, use “Color Palette Generator”.
From start to finish
- Upload your image. Drag and drop or choose the photo, logo or design.
- Choose the number of colors. Between 2 and 16. For a logo 3–5 colors, for a photo 6–10 colors are usually enough.
- Get the palette. Copy the HEX codes or download the report as JSON. The copy on the server is deleted when you leave the tool.
Frequently asked questions
Why did I get fewer colors than I chose?
If the image doesn’t contain that many distinct colors, as with a two-color logo, the palette comes back with fewer colors.
What do the percentages show?
How much of the visible pixels each color covers. If sky blue comes out at 40% in a photo, about 40% of the image is close to that shade.
Are the colors exactly the same as the pixels in the image?
The palette merges similar shades into one average color, so a color’s HEX code may not match any single pixel exactly. For an exact pixel color, use “Image Color Picker”.
Does my file stay on the server?
No. Your file reaches the server only to be processed and is deleted when the job is done; the output is deleted too once you download it and leave the tool. You don't need an account, a name or an email address, and your files are never sent to a third-party service. It is free to use: we set no hourly or daily quota on the number of jobs, we don't make you watch an ad before processing, and we add no watermark to the output.
Other Image tools
RUPO Studio