Skip to content

Color palette from image

Drop a photo to pull out its main colors, with HEX codes and how much of the image each one covers.

6

Runs entirely in your browser. Your files and colors never leave your device.

How to use the palette from image

  1. Drop an image onto the box, click to choose a file, or paste a screenshot with Ctrl+V.
  2. Pick how many colors you want (3–10).
  3. Click a swatch to copy its HEX code, or copy the whole palette as CSS, Tailwind or JSON.
  4. Open the palette in the generator to tweak it, or check text contrast between two colors.

How it works

The image is drawn to a small canvas in your browser and up to 40,000 pixels are sampled. Colors are grouped with k-means clustering in the OKLab color space, which measures distance the way people perceive it, so similar shades merge and distinct accents survive. Each swatch shows the average color of its group and the share of the image it covers. Nothing is uploaded.

Try it with popular colors

Ready-made palettes for Procreate

Prefer a finished palette? Browse every color for free, then download the swatch files.

Instant download: Procreate .swatches, Adobe .ase, GIMP/Krita .gpl, CSS/Tailwind and a printable PDF guide. Checkout by Payhip.

Related tools