← All tools

Image Palette Extractor: Local HEX, RGB & CSS Colors

Extract 1–16 dominant colors or sample an original pixel from a local image. Inspect alpha-weighted shares and copy HEX, RGB, HSL or CSS variables.

image-palette-extractorLOCAL WORKSPACE

Enabling local controls…

Extract image colors

No image loaded. Choose a file or use the synthetic sample.

You can also drop one PNG, JPEG or WebP here.

Static PNG, 8-bit JPEG, WebP only. Up to 20 MiB / 16 MP per image; 8192 px per side. Animation and damaged containers are rejected; native decoding can still fail. Native decoding controls orientation; WebP EXIF orientation support differs by browser. Color, transparent edges and encoding quality depend on the browser. Original metadata is not preserved. Files stay in page memory: no upload or storage.

Dominant colors and estimated shares

Load an image and extract. Fewer colors are not padded with duplicates.

Sampled to a maximum 256 px side, grouped into 5-bit RGB bins and ranked by alpha weight, using each bin's mean color. Fully transparent pixels are excluded, not treated as black. Shares use all visible samples, not just selected colors. This is a reproducible dominant-color approximation, not complete color science, WCAG contrast or brand-color identification.

How to use this tool

Open a static PNG, JPEG or WebP. Extract dominant colors or select original image coordinates and save the sampled pixels as JSON. The color picker reports browser-decoded sRGB.

When not to use it

Histogram colors are approximations, not a complete scientific palette, brand classification or WCAG contrast assessment. Fully transparent samples do not become black.

Read the guide →