Skip to content

Colour palette of an image

Upload a photo or design and get up to six representative colours. Each sample includes the HEX and RGB values, and you can copy the entire palette as CSS variables.

It works in your browser. We do not store or send anything you type.Free · No sign-up required

Workspace · Colour palette of an image

Runs in your browser · 100% local

Arrastra y suelta una imagen aquí o usa el botón. Formatos habituales: JPG, PNG, WebP, GIF y AVIF. Tamaño máximo: 30 MB. La imagen no se sube a ningún servidor.

Sube una imagen para extraer sus colores dominantes. El análisis se hace en un canvas local y no se envía nada.

Files are processed in your browser; if you are signed in with history enabled, text results appear in your history.
Instructions

How to use it

01

Select an image.

02

Wait for the pixels to be analysed and check the samples.

03

Copy a specific colour, all the HEX codes or the block of CSS variables.

Examples

Examples

Inspiration for a brand

A landscape photograph can provide shades of green, ochre and blue that serve as a colour palette.

Consistency with a photo

Use the extracted shades for soft backgrounds and save the darkest one for text.

Reference guide

What you need to know

The algorithm reduces the image to a thumbnail, groups the pixels by colour ranges and discards shades that are too similar. It then calculates the average colour of each group and sorts them by frequency. It is a fast and deterministic method, not a semantic segmentation of the image.

Transparencies are ignored when their alpha value is low, and soft gradients can produce intermediate shades. If you need an exact colour, use the colour picker on the image; if you need a harmonious palette, adjust the extracted shades using a harmony tool.

Frequently asked questions

Frequently Asked Questions

Up to six, excluding those that are almost identical to one another. A very uniform image may yield fewer results.

Related tools

Other tools that can help with similar tasks.

More at Images→
Extract a colour palette from an image · ByTooly