FREE TOOL · 58

Image Color Palette Extractor

Extract a dominant color palette from local images with HEX, RGB, HSL, population shares and CSS or JSON export.

2–16 colorsHEX / RGB / HSLLocal processing
Discover colors in any photo · Illustration
Tool workspaceRuns in your browser

Extract colors from a local image

Static JPEG, PNG and WebP · up to 20 MiB and 8 megapixels per image.

Choose local files.

UMD KNOWLEDGE BASE

Get more from this tool

Extract image colors

  • Choose a static image
  • Set the palette size
  • Copy or export color values

Choose 2–16 colors and review the approximate share of each color. Use HEX or CSS in your design project.

Extract dominant image colors and understand their shares

A synthetic four-pixel input contains two opaque red pixels, one opaque blue pixel and one fully transparent green pixel. Requesting two colors returns #FF0000 at approximately 66.7% and #0000FF at approximately 33.3% of included pixels. Fully transparent pixels are excluded; an entirely transparent input produces no palette.

These shares describe sampled nontransparent pixels assigned to clusters, not exact percentages of the original full-resolution file. Partly transparent pixels are included by the engine; cluster averages may differ from individual pixel colors. Review the exported HEX, RGB or HSL values before using them in a design.

How the editor works

A weighted median-cut grouping of quantized RGB bins produces representative colors. Preview sampling and color management affect results.

Keep the original media. Browser compatibility, memory and source encoding may affect results.

Local processing

The selected media is processed locally in your browser. No conversion upload or account is required. The original file is not modified.

Organize your media with Universal Media Downloader

UMD is Windows-first desktop software in development for authorized media collection, local libraries and project organization.

Frequently asked questions

Are the colors exact?

They are cluster averages, not necessarily exact source pixels.

Can I use the palette in CSS?

Yes. Export custom properties or a JSON report.

Is the tool free?

Yes, within the stated file and browser limits.

Do I need an account?

No. The editor runs independently in your browser.

Why might processing fail?

An unsupported codec, invalid file, memory pressure or browser API limitations can prevent processing.

Extract image colors

Choose 2–16 colors and review the approximate share of each color. Use HEX or CSS in your design project.

Good to know: Colors are approximate weighted clusters from a downsampled decoded image; fully transparent pixels are ignored.

What’s new in Image Color Palette Extractor

Initial implementation

Extract a dominant color palette from local images with HEX, RGB, HSL, population shares and CSS or JSON export.