IMAGE TOOLS
Color Palette Extractor
Extract dominant colors from an image, pin exact pixels, compare contrast and export your palette as CSS or JSON. Everything stays in your browser.
LOCAL IMAGE ANALYSIS
Choose an image to extract colors
Images are sampled locally. Animated images use the decoded frame. Use a smaller image if your device runs low on memory.
Decoding and sampling pixels in your browser…
Choose between 3 and 12 colors. Transparent pixels are ignored.
Click the image to pin a color. Pinned colors appear first; click × to unpin.
Extracted palette
Fewer distinct visible colors were found than the selected swatch count.
HSL
Relative luminance
Sampled pixels
Contrast pairings
Highest relative contrast between extracted swatches. Ratios use the WCAG sRGB formula; this is not a full accessibility audit.
/
Export palette
Choose an image to create a local color palette. Your image is not uploaded.
Your image is not uploaded. Image decoding, sampling and palette calculation happen locally in your browser.
Extract a color palette from an image
This tool finds representative colors from visible image pixels and lets you pin exact colors that matter to your design. Use the output as a starting point for a theme, illustration or brand palette.
How palette extraction works
The image is decoded locally and resized to a maximum 1,400-pixel sample dimension before color grouping. Transparent pixels and pixels with less than half opacity are ignored. Frequent quantized color groups become swatches; their HEX, RGB, HSL and relative luminance are shown. This lightweight histogram is an approximation, not a perceptual color model, so inspect the swatches and pin any exact pixel you need.
Pin colors and compare contrast
Click a visible point on the source image to pin its exact color. Pins appear first in the palette and remain included when you change the swatch count. The contrast section ranks the highest-contrast pairs among the extracted colors. It is a useful comparison, not a substitute for checking actual foreground/background combinations and WCAG text-size rules.
Export CSS or JSON
Copy the generated CSS custom properties into a stylesheet or copy JSON for another tool. Each swatch includes its HEX code, RGB and HSL values, relative luminance, and an approximate sample count. Keep the original image for full-resolution editing.
Frequently asked questions
How are dominant colors selected?
The image is downscaled locally and visible pixels are grouped into color bins. The most frequent bins become representative colors. Transparent pixels are ignored; results are an approximation, not a perceptual color-science measurement.
Can I keep a specific color?
Yes. Click a visible pixel in the image to pin its exact color. Pinned swatches stay at the start of the palette; remove a pin or increase the swatch count to make room.
Which image formats are supported?
PNG, JPEG and WebP images up to 10 MB are supported. Images are limited to 8192 pixels per side and 25 megapixels.
Is my image uploaded?
No. Image decoding, pixel sampling and palette calculation happen in your browser.
What are the HEX, RGB and HSL values?
HEX is a compact web color code, RGB lists red, green and blue channel values, and HSL describes hue, saturation and lightness. Relative luminance and contrast ratios use WCAG sRGB formulas.
Privacy note: image files stay in your browser. Color Picker & Converter offers manual color conversion and contrast checks.