Handy Orchard

Image palette extractor

Extract a deterministic median-cut palette with sample shares and HEX, CSS and JSON downloads.

Your input

Fewer distinct source colors can produce fewer palette entries.

Outputs are cleared when the input changes.

Result

Enter your data or use the example, then run the tool.

Worked example

The sample is half opaque red and half opaque blue. Two colors return #ff0000 and #0000ff at 50% of non-transparent samples each.

Method

Sample proportionally at no more than 256 × 256. Ignore fully transparent pixels and composite partial transparency against the selected background. Deterministic weighted median-cut groups the RGB samples and reports representative colors and shares.

Limits

This is a downsampled approximation, not color calibration or a print-profile tool. ICC/HDR handling and scaling can alter colors. An entirely transparent image is rejected. Static input is limited to 20 MiB and 40 million pixels.

Sources

MDN: drawing image regionsPaul Heckbert: color image quantization

Related tools

Image cropperSprite atlas packerPhoto contact sheet

Your inputs stay on this device. Only optional, consented page visits are measured. Input values, files, filenames and processing logs are not sent to Analytics.

When switching languages, text, settings and selected files are temporarily kept on this device. Transfers are removed after restoring; interrupted transfers are cleaned up on a later visit. Inputs and files are never uploaded.