Tool Hub

Palette Extractor

Extract dominant colors from an image with k-means clustering

Upload an image to extract its dominant colors using k-means clustering. The image is sampled to 5,000 pixels client-side, then grouped into k clusters; centroids are shown sorted by cluster size with hex/rgb codes.

How to use

  1. Upload any image file using the file button or drag it onto the tool.
  2. Wait for the k-means algorithm to extract up to 8 dominant colours from the image.
  3. Review the palette swatches alongside their hex codes and relative coverage.
  4. Click any hex code to copy it to the clipboard.
  5. All processing runs entirely in your browser — nothing is stored or sent anywhere.

Examples

  • Uploading a sunset photo extracts approximately 8 shades ranging from deep orange (#c94a1b) to soft pink (#f2b89a).
  • Uploading a brand logo with flat colours returns the exact brand colours as hex values ready to paste into a design tool.

Verify outputs before using in production. No warranty — see Terms.