Dominant Color Extractor
Find the single most dominant colour and a few key colours in an image.
Processed on your device — never uploaded
What Is This Tool?
This tool samples the image’s pixels, buckets similar colours together, and ranks them by how much of the image they cover. The top bucket is the "dominant" colour; the rest form a short key-colour list. Click any swatch to copy its hex code.
How It Works
Drop an image onto the box or choose one.
Set how many colours to show.
Optionally ignore near-black and near-white pixels.
Click a swatch to copy its hex value.
Everything runs locally in your browser — the image you choose is decoded onto an HTML canvas on your own device and is never uploaded to a server.
Features
- Single dominant colour with coverage percentage
- Ranked list of key colours
- Option to skip black/white backgrounds
- Click-to-copy hex codes
- Analysis runs in the browser
Common Use Cases
- Picking an accent colour that matches a hero photo
- Setting a themed background behind an image
- Auto-colouring a card from its thumbnail
- Checking the overall colour cast of a photo
Frequently Asked Questions
How is "dominant" decided?
Pixels are grouped into colour buckets and the bucket covering the largest share of the sampled pixels wins. It is coverage-based, not a saliency or "interesting subject" measure.
Why does it return grey for my colourful photo?
If large areas are muted or the background is neutral, the average of a bucket can be greyish. Try enabling "ignore near-black / near-white" or increasing the colour count.
Is this k-means clustering?
It uses fast fixed-bucket quantisation rather than full k-means, which is accurate enough for palettes and runs instantly on large images.
Can I get more than eight colours?
Use Palette from Image, which is tuned for larger, evenly-spread palettes.
Is my image uploaded?
No, all analysis is local.