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.