Find the Dominant Color of an Image — Online
Extract the real color palette of any photo in your browser: median-cut quantization finds 3–12 key colors with HEX codes, CSS variables and JSON export.
Processed entirely in your browser — nothing you enter here is ever uploaded.
Result
About this tool
This page opens the palette extractor preset to a single color: the one dominant color of the whole image. Upload a photo and the tool collapses every pixel into one representative value — the color that would stand for this picture if it could keep only one.
A single dominant color has surprisingly many uses: placeholder backgrounds that appear while photos load (the technique behind smooth image loading on large sites), tinted UI chrome behind cover art, automatic theme accents for cards and playlists, or a quick answer to “what color is this product, really?”. The result is shown as a large swatch with its HEX code, one click to copy.
Because the tool computes the color by averaging the largest pixel cluster rather than picking one pixel, the answer is stable — noise, JPEG artifacts and small highlights do not sway it. Everything runs locally in your browser with no upload. Need the fuller picture? Switch the selector to 3–12 colors and get the complete palette with CSS and JSON export.
Example. Median-cut quantization of the opaque pixels returns the requested number of colors, each with a HEX code, ordered by how many samples fell in that box.
Limit. The color count is capped at 12, pixels with alpha below 128 are skipped, and sampling stops around 10000 pixels.