Skip to content

Palette from image

Extract the dominant colors from an image. Pick k-means or median-cut, choose 2–16 swatches, then copy as CSS variables or JSON. Your image never leaves your browser.

Drop an image (PNG · JPG · WebP) or use the button below.

Algorithm

Features

How it works

  1. Drop a PNG, JPG or WebP image.
  2. Pick k-means or median-cut and set 2 to 16 swatches.
  3. Copy the palette as CSS variables or JSON, or download it as a PNG.

Your files never leave this page

Every conversion runs entirely in your browser using WebAssembly. There is no upload, no server-side processing, no analytics, and no cookies. Open DevTools → Network during the operation and you will see zero outbound traffic.

Related tools

Topics covered