Image Tools

Image Palette Extractor

Live

Extract a ranked palette of dominant HEX colors from an image entirely in your browser.

About Image Palette Extractor

The Image Palette Extractor analyzes a local image and builds a ranked palette of two to twelve representative colors. Adjust the palette size, compare proportional swatches, copy individual HEX values, or copy the entire set as CSS custom properties. The image remains on your device throughout the analysis.

Set up Image Palette Extractor

Workspace

Image canvas

Choose an image below to prepare a private, in-browser visual result.

Complete the fields to prepare a result.

Processed in browser via canvas; API uses ephemeral upload limits.

Choose how many representative colors to extract from the image.

Image Palette Extractor: colors

Choose the values that apply, then upload image.

Image processing method

Use browser File/Canvas APIs locally. Server GD path only for constrained API uploads with EXIF stripping.

How it works

The browser downsizes the image for analysis, skips mostly transparent pixels, samples pixels at regular intervals, and groups RGB channels into 32-level buckets. The most frequent buckets form the displayed palette. This fast quantization is useful for design inspiration but is not perceptual clustering and may treat visually similar shades as separate colors.

Examples

Eight-color local capability response

Example input
{
    "image": "local-file"
}
Expected result
{
    "colors": [],
    "preview": {
        "local_only": true,
        "sample_count": 8
    }
}

Privacy

Some inputs may be uploaded briefly for processing and are not retained after the request completes.

Frequently asked questions

How are dominant colors selected?

The tool samples a reduced canvas, quantizes RGB values into buckets, counts their frequency, and returns the most frequent buckets.

Can I choose how many colors appear?

Yes. Move the palette-size control between two and twelve colors; the ranked palette updates immediately.

How can I use the extracted palette?

Click an individual color to copy its HEX value, or copy the complete palette as numbered CSS custom properties.

Is the image uploaded to UtilityPages?

No. The interactive extractor decodes and samples the image locally with browser APIs and does not create a stored image library.