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.
Workspace · Colour palette of an image
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.
How to use it
Select an image.
Wait for the pixels to be analysed and check the samples.
Copy a specific colour, all the HEX codes or the block of CSS variables.
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.
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
Related tools
Other tools that can help with similar tasks.
Image colour picker
Click on an image to get the HEX and RGB colour values for that pixel.
Colour palette generator
Create colour palettes and copy the HEX codes.
Colour converter
Convert colours between HEX, RGB, HSL and CMYK.
