Why use this tool?
- Turn image colors into reusable HEX values and palette exports.
- Distinguish large background regions from smaller accent colors.
- Sample a specific image pixel separately from the clustered palette.
Extract a color palette from a photo, logo, or screenshot in your browser. Sample image pixels, copy HEX colors, and export the palette as design tokens.
Runs locally in your browser
Drop an image here
JPG, PNG, WebP, AVIF, GIF, or SVG. The file is read on this device and never uploaded.
Load an image to extract a palette.
Complete tool guide
Extract a representative color palette from a photo, screenshot, or logo using local browser processing. The tool clusters sampled pixels in Oklab, ranks colors by their share of those samples, and lets you inspect individual pixels from the loaded image.
Your input is processed in the current browser tab and is not sent to the application server.
Drop in an image, or choose a file from your device.
Set how many colors you want in the palette.
Hover or click anywhere on the image to sample an exact pixel.
Copy an individual swatch, or export the whole palette as tokens.
Choose how many representative colors to request. A nearly uniform image can contain fewer useful distinct colors than a detailed photograph.
Percentages describe clusters among retained sampled pixels. They are not visual-importance scores or exact counts of original HEX values.
Hover or select an image position to read the decoded full-resolution pixel. This result can differ from a nearby palette centroid.
Start with: A fully opaque image filled with #FF0000
Dominant color: #FF0000
Sampled interior pixel: #FF0000With uniform opaque sRGB input, clustering and pixel sampling agree. A real photograph usually contains many nearby values.
Start with: An opaque test image with 75% blue #0000FF and 25% yellow #FFFF00
Blue: approximately 75%
Yellow: approximately 25%The percentages depend on downsampling at the boundary. A smaller yellow region can still be the useful accent; area is not a recommendation for semantic importance.
Palette swatches summarize groups of similar sampled pixels. Use the sampler when you need the color of a particular logo region rather than an average of neighboring colors.
Clustering uses a downscaled image for speed and ignores pixels with alpha below 125 out of 255. Retained pixels are clustered by color; percentages are not a measure of the entire transparent canvas.
Clustering uses deterministic starting positions. The same decoded pixels and settings produce repeatable results, but image decoding and color management can differ between environments.
Sample a flat interior region for the decoded pixel value. Scaling, compression, transparency, and color management can change it from the original source token.
No. The image is decoded and processed in the current browser tab. It is not uploaded to an application server for extraction.
Large regions can dominate clustering, and downsampling can reduce tiny features. Increase the color count or crop the source image around the area of interest before loading it.
Keep working
Continue with another focused tool from the same collection.