Skip to content
EASE+ Creative

Image Color Extractor

Extract the dominant colours and a palette from any image in your browser, then turn them into a gradient. Export CSS, JSON or Tailwind tokens.

Files stay on your deviceExports CSS, JSON, Tailwind, PNG

About this tool

  1. 1Drop an image or choose a file. It stays on your device.
  2. 2Pick how many colours to extract (3–12).
  3. 3Click a swatch to copy its HEX, RGB or OKLCH value.
  4. 4Export the palette or the generated gradient.

How it works

The image is downscaled on a canvas and its pixels are clustered with k-means in OKLab space, which groups colours the way the eye does. Clusters are ranked by pixel share, so the first swatch is the most dominant colour. The gradient is built from the top clusters sorted by lightness.

Use cases

  • Matching UI colours to a hero photo
  • Building a mood palette from reference images
  • Sampling brand colours from a client's existing artwork

Questions

Is my image uploaded anywhere?

No. The image is read with the File API and processed on a canvas in your browser. Nothing is sent to a server.

Why do results change slightly between runs?

k-means starts from sampled seeds. The tool uses a fixed seed per image so results are stable, but changing the colour count changes the clusters.

Which formats are supported?

PNG, JPG, WebP, GIF (first frame) and SVG.

Related tools

How the algorithms workHow your files are handledUsing what you export