Extract the Dominant Colors
Drop an image to pull a color palette from it. Click a color to copy its hex code.
Dominant Colors of an Image is a free tool that runs entirely in your browser, with no data ever sent to a server. Extract a color palette and copy its hex codes.
How the palette is calculated
The image is downscaled to a small analysis size, then its pixels are grouped by color similarity using the median-cut method: at each step, the group with the widest hue range is split in two, until the requested number of colors is reached. It's the same family of method used by most palette extractors.
What it's for
- Reuse a photo's colors for a brand guide or a website.
- Check the color consistency of a series of visuals.
- Choose a background color that matches an image.
What this tool does not do
This tool does not read HEIC photos (the default on some iPhones): convert them to JPEG from the device first. On a PNG, compression changes the format rather than truly reducing the size, since the browser cannot produce a reduced-palette PNG.
Frequently asked questions
Why does the color obtained slightly differ from what I see?
Each color shown is an average of a whole group of nearby pixels, not the color of one exact pixel. On a gradient area, the average may therefore look a bit different from any single point taken in isolation.
Clicking a color doesn't copy anything?
The code is copied to your browser's clipboard; a confirmation message briefly appears. Some browsers ask for permission the first time.
Are my files sent to a server?
No: processing happens entirely in your browser, on your device. No file is ever transmitted to a server, at any point.
Similar tools
Favicon Generator
Produce every favicon size from a single logo, with the code to paste.
Image to Base64
Convert an image to text to paste into CSS or HTML, and the other way around.
Clean a Photo's Metadata
Remove the location, date, and camera model recorded in a photo.
Add a Border
Surround an image with a solid frame, in batch, with adjustable thickness and color.