Search tools

Image Color Palette Extractor

Pull a ready-to-use colour palette out of any photo, artwork or screenshot.

Image Color Palette Extractor tool

Processing runs in your browser.

Great colour schemes are everywhere: a sunset photo, a film still, a painting, a competitor’s homepage. Extracting a palette from an image you love is a fast way to start a design that feels coherent, because the colours already work together in the original.

How it works

The image is scaled down to about 400 pixels, which is plenty to find the main colours and makes the analysis instant. A clustering algorithm groups similar colours and finds the average of each group. The bar above the swatches shows how much of the image each colour covers, so you can tell the dominant tone from a small accent.

Using the palette

  • Websites and brands: use the most common, calmer colour for backgrounds and an accent for buttons and links.
  • Presentations: match slides to a key photo for a polished look.
  • Illustration and art: study the palette of a reference image.
  • Interiors and fashion: turn a mood photo into paint or fabric colour codes.

Sorting

  • Most common first shows what the image is mainly made of.
  • Dark to light gives a natural gradient, handy for building a scale.
  • By hue groups warm and cool colours, with greys first.

The image is analysed in your browser and never uploaded. For a full shade scale from one of these colours, try the colour palette generator.

How to use the Image Color Palette Extractor

  1. Drop an image on the box, or paste one with Ctrl+V.
  2. Choose how many colours you want, from 2 to 12.
  3. Sort by how common each colour is, dark to light, or by hue.
  4. Click a swatch to copy its HEX, or export the palette as CSS variables, JSON or a HEX list.

Features

  • Finds the dominant colours using k-means clustering on a sample of the image.
  • Shows each colour’s share of the image as a proportional bar.
  • Readable labels on every swatch, chosen by contrast.
  • Sort by frequency, lightness (OKLCH) or hue.
  • Exports CSS custom properties, JSON with RGB and share, or a plain HEX list.

Frequently asked questions

How are the colours chosen?

The image is scaled down and sampled, then similar colours are grouped with k-means clustering. Each group’s average colour becomes a swatch, and its size is the share of the image it covers.

Why are my colours slightly different from the photo?

Each swatch is the average of a group of similar pixels, so a speckled area becomes one smooth colour. For an exact single pixel, use the colour picker from image.

How many colours should I extract?

Five or six for a usable design palette. Fewer gives just the overall mood; more reveals smaller accent colours, but can include near-duplicates.

Can I use the palette in Tailwind or Figma?

Copy the HEX values into Figma styles, or paste the CSS variables into your stylesheet. The colour palette generator can then build full 50–950 shade scales from any swatch.

Written by