Skip to content
Toolbase

Colour Palette Extractor

Extract the dominant colours from any product photo and copy HEX or RGB values with one click. Free, instant, no upload.

Your images never leave your browser
No upload
Loading tool…

How to use the Colour Palette Extractor

  1. 1Drop or paste a photo.
  2. 2Choose how many colours to extract (3 to 12).
  3. 3Click a swatch to copy HEX, RGB or HSL.
  4. 4Export the palette as PNG, CSS or JSON.

Consistent colour is what makes a shop look like a brand rather than a pile of listings, but sellers rarely know the actual values in their photos. The Colour Palette Extractor answers the question "what colours are in this image?" with numbers you can use: it finds the dominant colour set of any photo and gives you each hex colour from photo with one click, plus RGB and HSL, so banners, infographics and size charts can reuse the exact tones of the product. It is the quickest way to get colours from image files without a design suite.

How it works

  1. Drop or paste a product photo, packaging shot or competitor's banner.
  2. Choose how many colours to extract, from 3 to 12.
  3. The tool runs a median-cut quantiser on a downsampled copy of the image, splitting the colour space repeatedly at the widest axis until it has the requested number of buckets, then averages each bucket into a swatch and orders them by coverage.
  4. Click any swatch to copy HEX, RGB or HSL.
  5. Export the whole palette as a PNG strip for a mood board, as CSS custom properties or as JSON for a theme file.

Median-cut is the same approach used to build GIF palettes, which means it reflects what the image actually contains rather than the prettiest colours. A percentage next to each swatch shows how much of the image it covers, so you can tell the product colour from the background at a glance.

Why it matters

Colour data turns into money in several places:

  • Amazon A+ content modules at 970Γ—600 and Shopify theme sections look professional when accent colours are sampled from the product rather than guessed.
  • Etsy and TikTok Shop shoppers filter by colour names; knowing that your "navy" is really HSL 220Β°, 60%, 25% helps you name variants accurately.
  • Text on infographics must stay readable: WCAG recommends a contrast ratio of at least 4.5:1 for body text, and you cannot check contrast without the values.
  • Buyers and suppliers argue about shade; an exported palette from the sample photo settles it.

Tips

  • Extract from a cut-out with a transparent background, or the white or grey backdrop will take one or two swatches. The Background Remover makes that a one-click job.
  • Six colours is a good default for product photos; go higher for patterned textiles and lower for packaging.
  • Need one exact pixel rather than an average? Use the Image Colour Picker.
  • Feed the dominant swatch into the Product Colour Variant Generator as a custom colour to recolour another product to match.
  • Paste the HEX values into the Size Chart Image Generator or the Text on Image / Caption Tool for on-brand overlays.
  • Export CSS when handing colours to a theme developer; the variable names include the swatch index and hex code.

Privacy

Quantisation runs on a downsampled copy in your browser. Your images never leave your browser, and no palette is stored anywhere unless you export it.

Frequently asked questions

How many colours can I extract?

Between 3 and 12. Three to four suits packaging and simple products, six is a good all-round default, and 10 to 12 helps with patterned textiles or lifestyle scenes. More colours means each swatch covers a smaller share of the image, so the percentages get smaller too.

Why does the palette include white or grey?

Because the background is part of the image, and on a product photo it often covers most of the pixels. Either extract from a transparent cut-out made with the Background Remover or simply ignore the swatch with the largest percentage when it matches your backdrop.

What is the difference between this and the colour picker?

The extractor summarises the whole image into a handful of representative colours using median-cut quantisation. The Image Colour Picker reads one exact pixel. Use the extractor for palettes and moods, and the picker when you need the precise value of a specific point.

What formats can I export?

A PNG strip of the swatches for mood boards and briefs, a CSS snippet with custom properties named by index and hex value, and a JSON array with HEX, RGB, HSL and coverage for each colour. Individual values can also be copied one at a time.

Does the extraction change with image size?

Only slightly. The tool downsamples large images to a fixed working size before quantising, which keeps it instant and makes results consistent between a 1000 px and a 4000 px version of the same photo. Heavy JPG compression can shift swatches by a point or two.