QuickTools

Home › Craft & Design › Colour Palette from Image

Colour Palette from Image

Extract the main colours from any image, click the picture to pick exact colours, and copy HEX, RGB or HSL, CSS or JSON.

🔒
Private by design: this tool runs in your browser, not on our server. Your files and text are processed on your own device and are never uploaded. How we keep your data safe
  1. 1 Add a picture
  2. 2 Extract or click to pick
  3. 3 Copy your colours
Settings

Main colours

Two ways to get colours

Main colours: the picture is shrunk and its pixels are grouped into the number of colour clusters you choose (k-means clustering). Each swatch is the average colour of one group, and the percentage shows how much of the picture it covers. Click the picture to pick the exact colour of any single pixel, for example the red of one flower.

Formats and export

Switch between HEX, RGB and HSL, click any swatch to copy it, or copy the whole palette as CSS variables or JSON to paste straight into a stylesheet or design tool.

What to use it for

Use fewer colours (3 to 5) for a clean brand palette and more (8 to 12) for a painting. Your image never leaves your device.