Dominant Color Extractor


Upload, drop, or paste a photo to extract its dominant colors. This dominant color extractor analyzes the whole image rather than sampling a single point, then groups similar shades into representative swatches you can sort and copy.

Extract dominant colors from a photo

Choose between 2 and 12 colors, with 6 selected by default. Sort the results by dominance, hue, or brightness. Similar shades can be grouped together, so an image with few distinct colors may return fewer swatches than requested.
Large images are resized to a smaller raster for color analysis. This analysis image is separate from the preview shown in the tool.

Copy or download dominant color values

Choose HEX list, CSS variables, or JSON to copy or download the full set. Use the extracted colors in a design file, stylesheet, or data workflow.
To change one of those colors in the image, enter its HEX value in Image Color Replacer as the source color.

Supported image formats and size limits

Use a PNG, JPEG or JFIF, WebP, AVIF, BMP, or GIF image that your browser can decode. For an animated image, the first decoded frame is analyzed. HEIC and HEIF are not supported. Files can be up to 20 MiB, 40 megapixels, and 16,384 pixels wide or high.

Dominant color extractor questions

How is each color percentage calculated?

Each percentage estimates the share of visible pixels assigned to that color in the analysis image. Large images are reduced to no more than 700 pixels on an edge and 250,000 pixels total, so the percentage may differ slightly from a full resolution count. Partly transparent pixels count according to opacity, and fully transparent pixels are ignored.

Can I get both HEX and RGB values from an image?

Each result includes a HEX code. The JSON palette also contains RGB and HSL values, along with color shares and image dimensions. The individual color copy button copies the HEX code.

Does sorting change a color's percentage?

No. Sorting by dominance, hue, or brightness changes only the order of the swatches. The color values and their shares stay the same.

Is my image sent to a server for color extraction?

No. The image is decoded and analyzed in your browser. Its pixel data is not sent to an image processing service.

Does extracting colors change my original photo?

No. The tool analyzes the image and creates color values to copy or export. It does not recolor or overwrite the photo.