
Compress JPG, PNG and WebP images — or hit an exact target size in KB/MB.
Extract a designer-grade palette with names, contrast checks and exports.
Your files never leave your device. Everything runs in your browser.
Color Palette Extractor pulls the dominant colours out of a photo or design and turns them into a ready-to-use palette, with colour names, HEX, RGB and HSL values, and contrast checks against white and black. It is useful for building a brand palette from a mood board, matching text colours to an image, or checking whether a palette is accessible.
The extraction runs in a worker and lets you choose between 3 and 12 colours, sorted by dominance, hue or lightness. Hovering or focusing a swatch highlights the pixels it came from in the image, so you can see exactly where each colour lives.
Every colour card shows its share of the image and its WCAG contrast grade on white and black, and the palette can be exported as CSS variables, JSON, a Tailwind config, SCSS, a PNG sheet or Adobe .ASE swatches.
The image is analysed in a worker and reduced to the requested number of representative colours. Large, uniform areas usually dominate the result, while small accents may not appear unless you raise the colour count.
Names are the nearest match from a standard list, so they are descriptive rather than authoritative. Always use the HEX or RGB value when exact colour matters.
For each colour the tool calculates the contrast ratio against white and black text and grades it by the WCAG thresholds: AA for normal text (4.5:1) and AAA (7:1). Use this to pick readable text colours from the palette.
Yes — .ASE files import into Adobe Photoshop, Illustrator and InDesign, as well as several other design apps. The PNG palette is for quick sharing, and the code exports are aimed at web projects.
Very large images are downscaled before extraction so the browser stays responsive. Tiny accent colours may be smoothed away; crop to the area of interest with the Crop Image tool and extract again for more precision.
Related image tools: Image Compressor, Image Converter, Image Resizer.
The image is analysed entirely in your browser with a local worker. Nothing is uploaded, and exported files are created on your device.