Color Palette from Image

Drop any image and get the dominant colors as HEX and RGB codes. Click any swatch to copy instantly. Download as a palette PNG. No upload, no signup.

100% browser-basedNo uploadDownload palette PNG
🎨

Drop your image here

JPG, PNG, WebP, GIF supported

Why extract colors from an image?

Building a brand color palette from a photo you love. Matching a design to a product image. Finding the exact color of that flower in a stock photo. Pulling the primary tones from a client's existing assets before you start designing. These are all real workflows that designers, developers, and marketers do constantly — and they all need a fast way to get HEX codes from an image.

This tool does the boring pixel math for you. You drop the image, it finds the dominant colors, you copy the codes. That's the whole workflow.

The difference between this and the Color Picker tool

The Color Pickerlets you click a specific pixel in your image to get its exact color. Great when you know exactly which shade you want. The Color Palette tool is for when you don't know — it finds the dominant colors across the whole image automatically. Use both: palette for discovery, picker for precision.

How many colours should you extract?

The right number depends on what the palette is for. More colours is not more useful, it just moves the job of choosing from the tool to you.

ColoursGood for
3 to 5A brand or website palette. One main colour, one accent, and neutrals.
6 to 8A user interface or presentation theme with room for states and highlights
10 to 12Describing a whole scene, or matching an illustration to a photo

What the exclude extremes option does

Most photographs contain a lot of near black shadow and near white highlight. Counted by area, those often win, and the palette comes back as three greys and a black. Excluding the extremes skips pixels that are almost pure black or almost pure white, so the colours that give the image its character can come through.

Turn it off when the darks or lights are the point, for example a moody black and white photo or a product shot on a white background where you want that exact white.

Area is not the same as importance

The palette ranks colours by how many pixels they cover. Your eye does not. A small red logo on a large grey wall is the first thing a person notices, and the last thing an area count reports.

When a key colour is missing from the result, crop the image to the part you care about and extract again. Giving the tool less background to count is the quickest way to make an accent colour show up.

Turning a palette into something usable

An extracted palette is raw material. Two checks turn it into a scheme that works on a real page.

  • Pick one dominant colour and one accent. Using every swatch equally makes a design look unplanned.
  • Test text contrast before committing. The accessibility guideline WCAG asks for a contrast ratio of at least 4.5 to 1 for normal body text and 3 to 1 for large text.
  • Light colours pulled from photos are often too pale for text on white. Keep them for backgrounds and borders instead.

Other tools you might need

Color Picker →Grayscale Image →Invert Colors →Convert Image →

Frequently asked questions

How does the color extraction work?+
The image is drawn to a canvas and sampled pixel by pixel. Nearby colors are grouped together using a distance threshold in RGB space. The most frequently occurring color clusters are returned as your palette. It is similar to how design tools extract brand colors from images.
Why does the palette include colors I don't really see?+
Sometimes gradients, shadows, or anti-aliasing create a lot of pixels in colors that aren't visually obvious. Use the 'exclude near-white/black' option to filter out very light or very dark colors that tend to dominate palettes without being useful.
Can I use these color codes in CSS, Figma, or design tools?+
Yes. HEX codes work directly in CSS, Figma, Sketch, Adobe XD, and every other design tool. Just copy the code and paste it wherever you need it.
How many colors can I extract?+
You can choose between 5, 8, 10, and 12 colors. More colors gives you a finer palette but can include more noise. For most images, 8 is a good starting point.
Can I download the palette?+
Yes. The Download Palette PNG button generates a clean image of your palette with all swatches and HEX codes — useful for saving to a mood board or sharing with a client.
Why is an important colour missing from my palette?+
The palette ranks colours by the area they cover. A small but eye catching detail loses to large plain regions. Crop the image to the area you care about and extract again.
What does exclude extremes mean?+
It skips pixels that are almost pure black or almost pure white, so shadows and highlights do not crowd out the actual colours of the image.
How many colours should I pull for a brand palette?+
Three to five is usually right: a main colour, an accent, and a couple of neutrals. More than that tends to make a brand feel unplanned.
Are the colours exact?+
They are real averages of groups of similar pixels in your image. Compression can shift pixel values slightly, so for an exact brand colour take it from the original logo file rather than a photo.
Can I check if a colour works for text?+
Use the hex code in any contrast checker. Body text should reach at least 4.5 to 1 against its background to meet the WCAG AA guideline.