Photos & videos are never uploaded or stored.

Why?
BROWSER CAMERA

Color Palette Extractor

Find the dominant colours of any photo, logo or artwork and copy them as HEX, RGB or HSL, or export the whole palette for CSS, SCSS, Tailwind or JSON.

Drop an image here, or click to choose

A photo, logo, artwork or screenshot. Analysed on your device, never uploaded.

Settings

Palette

Number of colours

Colours are ordered by how much of the picture they cover. Click a colour to copy its HEX code.

Export

Format

Updated

Extract a colour palette from an image

Drop an image above. Its main colours appear immediately as swatches, ordered by how much of the picture each one covers, with a colour bar under the image showing their proportions. Click a swatch to copy its HEX code, or click the HEX, RGB or HSL value you need.

Export the palette

Format Example
CSS :root { --color-1: #1e4fc8; … }
SCSS $color-1: #1e4fc8;
Tailwind colors: { palette: { 100: '#1e4fc8', … } }
JSON HEX, RGB and coverage % for each colour
HEX A plain comma-separated list

Download palette PNG saves the swatches as an image with their HEX codes, handy for mood boards and briefs.

How the colours are found

The image is sampled at 200 pixels across (fully transparent pixels are ignored). Similar colours are grouped (32 levels per channel), the most common colour is taken first, and each next colour is the one most different from those already chosen (weighted by how much of the image it covers), so small but distinct accents such as a red detail are not merged away. k-means clustering with a perceptually weighted colour distance then refines them. The result is deterministic: the same image always gives the same palette. Choose 4 to 12 colours; fewer gives the broad scheme, more picks up accents.

Uses

  • Web and brand design: build a site theme from a photo or logo.
  • Interior and fashion: pull a scheme from an inspiration picture.
  • Artists and illustrators: limited palettes from reference photos.
  • Data visualisation: colours that match a header image.

To pick one exact pixel instead, use the Image Color Picker.

Private by design

Most online editors upload your pictures to a server. Here, everything happens in your browser, on your device: the image is processed by code running on your own computer or phone and is never sent anywhere. That makes it safe for personal photos, documents, client work and unreleased designs. Close the tab and it's gone.

Frequently asked questions

How do I get the colours from an image?

Drop the image above. The dominant colours appear as swatches; click one to copy its HEX code.

How many colours can I extract?

4, 5, 6, 8, 10 or 12.

What does the percentage mean?

How much of the image is closest to that colour. Swatches are sorted from largest to smallest share.

Can I export the palette for CSS or Tailwind?

Yes: CSS custom properties, SCSS variables, a Tailwind colors block, JSON or a plain HEX list.

Does it work with logos and transparent PNGs?

Yes. Transparent pixels are ignored, so the background doesn't count as a colour.

Will I get the same palette every time?

Yes. The method is deterministic for the same image and colour count.

Can I get the exact colour of one pixel?

Use the Image Color Picker for that.

Which formats are supported?

JPG, PNG, WebP, AVIF, HEIC, GIF, BMP, TIFF and SVG.

Are my images uploaded?

No. Everything is processed by your browser on your device. Nothing is sent to our servers.

Is it free?

Yes. No sign-up, no watermark of ours and no limits beyond what your device can handle.

Related tools