/tools/dominant-color-finder

Dominant Color Finder

Upload an image to find the single color that covers more of it than any other. It is starred in the palette and preselected, so its HEX, RGB and HSL codes are ready to copy.

Private & secure
Upload image or drag & drop
JPG · PNG · WebP

How to use the Dominant Color Finder

01
Upload
Drop an image.
02
Click to pick
Click anywhere to grab a colour. A palette is extracted automatically.
03
Copy
Copy HEX, RGB or HSL, or the whole palette as CSS.

How the dominant color is chosen

On the server the image is grouped into a small number of colors, 6 by default and anywhere from 4 to 12. Each pixel joins the group it is closest to, and the group with the most pixels is the dominant color. Transparent pixels are skipped, so a cut-out product or logo is measured on the visible part only.

Changing the number of colors can shift the result a little. With fewer groups, similar shades merge, and a family of greens spread across a photo may combine to overtake a single large grey area.

Dominant, average and eye-catching are different

The average color of a photo is a blend of everything in it, which usually comes out as a muddy grey or brown that may not appear anywhere in the image. The dominant color is a real color that covers the largest share of the picture.

It is also not necessarily the color you notice first. In a photo of a red car on a grey street, the street is dominant even though the car draws the eye. If you want the subject's color, crop to the subject first or pick it directly by clicking on it.

Uses for an image's dominant color

Common uses include a background color that shows while a large image loads, a card or page background behind album art or a product photo, and an overlay or border that feels connected to the image. Designers also use it to sort or group a collection of photos by color. Copy the HEX value and use it as a CSS background-color, or copy the full palette as CSS variables.

Supported formats

JPGPNGWebP

Files up to 25 MB. Large, high-resolution photos are supported.

Privacy

Your file is sent over HTTPS, processed in memory and returned straight away. It is never stored, never shared and never used for anything else. No account needed. How we handle files.

Dominant Color Finder FAQ

Why is the dominant color the background and not the subject?

Because the background covers more pixels. Crop the image tightly around the subject and check again.

Can I find the dominant color of a logo with a transparent background?

Yes. Transparent pixels are ignored, so the result reflects the logo itself.

Why did the dominant color change when I changed the number of colors?

Different group counts merge or split shades differently, which can change which group is largest.

How do I use the dominant color as a CSS background?

Copy the HEX value and set it as background-color, for example on the element that holds the image.

Is the dominant color the same as the average color?

No. The average blends all pixels into one value. The dominant color is the largest group of similar pixels.

Are my images safe?

Your file is sent over HTTPS, processed in memory and returned straight away. It is never stored, never shared and never used for anything else.

Is it free?

Yes. No account, no watermark and no limit on how many images you process. Files can be up to 25 MB.

Related tools

See all 6 color tools →