Extract a Color Palette from Any Image

Upload a photo, get the dominant colors as hex codes. Perfect for designers, brand work, and mood boards. Nothing is uploaded — everything runs in your browser.

  • 100% Private
  • Hex + RGB
  • Free Forever

Drop an image here or click to upload

PNG, JPG, or WEBP. We'll find the dominant colors.

How it works

  1. 1

    Upload your image

    Drop a JPG, PNG, or WEBP. Stays in your browser — nothing uploaded.

  2. 2

    We find the dominant colors

    A k-means clustering algorithm groups pixels into the most representative colors. Pick 3 to 10 colors.

  3. 3

    Copy and use

    Click a swatch to copy its hex code. Or copy all as CSS variables to use in your stylesheet.

FAQ

Is the image uploaded to a server?

No. We sample pixels from a canvas directly in your browser. Your image never leaves your device.

How does the algorithm work?

We downsample the image, sample ~10,000 pixels, and run k-means clustering for ~15 iterations. The k centroid colors become your palette. It's fast, deterministic, and works well on most photos.

What's the difference between "6 colors" and "10 colors"?

More colors means more granular palette. 3-5 captures the broad mood; 8-10 captures subtle highlights and shadows. 6 is a good default for designers.

Can I use these colors in my project?

Yes — click any swatch to copy its hex code, or use "Copy as CSS variables" to drop them into a stylesheet (becomes `--color-1: #abc;` etc.).