Palette Extractor
Extract a dominant color palette from a photo using k-means clustering, with adjustable color count and one-click HEX copy, in your browser.
🔒 This tool runs entirely in your browser. Your files are never uploaded to a server.
How the palette extractor works
- Choose a photo and pick how many colors you want in the palette.
- The tool samples pixels across the image and groups similar colors together using k-means clustering.
- Each cluster's average color becomes a swatch — click any swatch to copy its HEX code.
How k-means clustering works here
K-means starts with a handful of initial "guess" colors, then repeatedly assigns every sampled pixel to whichever guess color it's closest to and recalculates each guess as the average of its assigned pixels. After a few rounds, the guesses settle into a set of colors that genuinely represent the distinct color groups in the image, rather than just the most common individual pixel values.
FAQ
How does the tool decide which colors to extract?
It samples pixels across the image and groups them into clusters of similar color using a k-means algorithm — each cluster's average color becomes one palette swatch, and the percentage shown is roughly how much of the sampled image falls into that cluster.
Why doesn't the palette include every color in the image?
Most photos contain thousands of subtly different colors — the point of a palette extractor is to summarize that into a handful of representative dominant colors, not list every shade present.
Does transparency affect the result?
Mostly-transparent pixels are excluded from the sample, so a PNG with transparent areas won't have those areas skew the extracted palette.
Is my image uploaded anywhere?
No. The image is sampled and clustered entirely in your browser using an HTML canvas — nothing is sent to Online Tool Store or any other server.
How we compare
| Feature | Online Tool Store | Coolors palette from image | Adobe Color extract theme |
|---|---|---|---|
| Adjustable color count | ✓ | ✓ | Fixed at 5 |
| No sign-up or account | ✓ | ✓ | Account required |
| Image never uploaded to a server | ✓ | Uploads to server | Uploads to server |
For a quick, private palette extraction with control over how many colors you get, the Online Tool Store Palette Extractor does it right in your browser.