Toolbox

Image Palette Extractor

配色提取主色调色板UI配色

Extract up to 8 dominant colors from any image with usage percentages and one-click HEX copy — for UI themes, slide decks and interior inspiration, fully local.

All processing is done locally.

How to Use

  • Paste any valid JSON, supports nesting, arrays and escapes
  • Click Beautify to auto indent and format
  • Click Minify to remove whitespace into one line
  • All operations run locally for privacy

Related Tools

FAQ

How is the palette computed?

The image is downsampled and bucketed by the top 4 bits of each RGB channel; the eight largest buckets return their weighted average colors.

Why do some colors differ slightly from what I see?

Bucket averaging merges close shades and dilutes extreme highlights/shadows — a tradeoff for harmonious palettes.

Will my data be uploaded?

No, all computation runs locally in your browser.