Free color tool

Image Color Extractor

Drop any PNG, JPG or WebP and extract the dominant colors. Click a result to use it as your palette base. Nothing leaves your browser.

What this page covers

This page explains the workflow and links directly to the relevant section of the main Chromaforge tool.

  • Extracts up to six dominant colors using k-means clustering.
  • Click any extracted color to set it as the palette base color immediately.
  • Supports PNG, JPEG and WebP up to 8 MB.
  • Extraction runs locally in the browser via the canvas API — no image is transmitted anywhere.
How many colors are extracted?

Up to six dominant colors, sorted by perceived brightness. The extraction uses k-means clustering on downscaled pixel data, so it captures the most visually significant hues rather than the most frequently occurring pixel values.

How accurate is the extraction?

Accurate enough for design reference work. K-means is non-deterministic, so results can vary slightly between runs on the same image. For brand-critical color matching, always verify extracted values against official brand guidelines.

Is my image uploaded anywhere?

No. The image is read by the browser's FileReader API and processed on a canvas element entirely in your device's memory. No network request is made during extraction.