Color Palette Extractor
Select your files

Supports PNG, JPG, JPEG, WEBP

Number of Colors

Extract a Color Palette from Any Image

Pull the dominant colors out of any photo or design and copy the hex codes with a single click.

What you get

A palette of the dominant colours in your image, from 4 to 12 swatches. Each swatch shows its hex code (for example #2f6fb2), its RGB value and the percentage of the image it covers. The list is sorted from the most common colour down, so the first swatch is usually the background or the main subject.

Designers use it to build a brand palette from a logo or mood board, to match a website to a product photo, or to pick slide and chart colours that go with a cover image. It also answers the everyday question "what colour is that?" for a wall, a dress or a screenshot.

How it works

Your image is sent to our server, shrunk to at most 400 pixels on its longest side (enough detail for colour, and fast) and passed to Pillow's octree quantiser. The quantiser sorts every pixel into a tree of similar colours and keeps the number of groups you asked for. Each group becomes one swatch, coloured by the average of its pixels, and the tool counts how many pixels fell into each group to work out the percentages.

Worked example

A beach photo with 6 colours might return a pale sand colour at 34%, two sky blues at 22% and 15%, a sea green at 14%, white foam at 9% and a dark rock colour at 6%. The sand and sky would make good background colours for a travel website; the dark rock colour is a natural choice for text, because it is part of the same picture and has strong contrast against the sand.

Tips for a better palette

  • Crop first. If you only want the colours of a product or a logo, cut away the background with Crop Image before extracting.
  • Fewer colours for brands, more for photos. A flat logo has 2 to 4 real colours; asking for 12 just returns near-duplicates. A detailed photo needs 8 to 12.
  • Check contrast before using colours for text. Two colours from the same photo can look different but be too similar in brightness to read. Use a contrast checker against the WCAG 4.5:1 ratio.
  • Large white or black areas dominate. Screenshots with a lot of empty space put white first. Crop the empty space out to see the real accent colours.

How to Use Extract a Color Palette

1

Upload a photo, screenshot, logo or artwork (PNG, JPG or WebP).

2

Choose how many colours you want: 4, 6, 8, 10 or 12.

3

Click Extract. Our server finds the main colours and returns them, most common first, with the share of the image each one covers.

4

Click any swatch to copy its hex code, then paste it into your design tool, CSS or brand guide.

Frequently Asked Questions

How are the colours chosen?

The image is shrunk to at most 400 × 400 pixels and reduced to the number of colours you picked with Pillow's fast octree quantiser. Each colour is the average of a group of similar pixels, so it may not match any single pixel exactly. They are listed by how much of the image they cover.

Why is a small accent colour missing?

Colours that cover only a tiny part of the image get merged into a larger neighbour. Ask for 10 or 12 colours, or crop the image to the area you care about first, and the accent is more likely to appear as its own swatch.

Can I get RGB or HSL values instead of hex?

The result includes the RGB values next to each hex code. Clicking a swatch copies the hex code. Any design tool converts hex to HSL or CMYK.

Are the colours print-ready (CMYK or Pantone)?

No. The colours are screen colours (sRGB). For print, convert them in your design software and check against a printed proof or a Pantone guide, because screens and ink show colour differently.

What happens to my image?

It is uploaded over an encrypted connection, read in memory on our server and released as soon as the colours are returned. We do not keep it.

Is there a size limit?

Images up to 100 MB are accepted. Large photos work fine because the tool shrinks them before analysing.