Color Palette Extractor
Extract dominant colors from any image
Drop an image to extract its color palette
Supports: *
Quick steps
Drop an image
Upload any JPG, PNG, or WebP. Photos with strong color identity work best.
Pick palette size
5 colors for minimal, 8 or 10 for a richer palette. Click extract.
Copy or save
Click any color card to copy HEX. Download the full palette as a PNG of swatches.
Frequently asked questions
How does the extraction work?
We use k-means clustering on the image's pixels. Each pixel is assigned to the closest of K cluster centers; the centers move toward the average of their assigned pixels until they stop changing. The K final centers become your palette, ordered by how many pixels they cover.
Why are some colors slightly different from what I see?
Each palette color is the average of a cluster of pixels, not necessarily an exact pixel value. This produces representative colors that feel right for the image as a whole, not just specific spots.
Is my image uploaded?
No. The pixel data is read directly in your browser, and clustering runs locally on your CPU.
Why does it take a moment for large images?
We downsample very large images to roughly 10,000 pixels before clustering, but the math still takes a second on really detailed photos.