Image Tools
Extract Colour Palette from Image
Image
How to use this tool
- 1Drop, paste or choose an image.
- 2Choose how many colours to extract and whether to skip a white or black background.
- 3Click a swatch to copy it, or click the image to pick an exact pixel.
- 4Copy or download the palette in the format you need.
Frequently asked questions
Pixels are grouped with k-means clustering in OKLab, a colour space where equal distances look equally different to the eye. Each swatch is the average colour of one group, and the percentage is how much of the image that group covers.
Yes. The clustering uses a fixed random seed, so the same image and settings always produce the same colours.
Large white or black backgrounds are real pixels. Turn on “Ignore white and black background” to leave them out, which is useful for logos and product photos. Transparent pixels are skipped by default.
CSS custom properties, SCSS variables, a Tailwind colours block, JSON, a GIMP/Inkscape .gpl palette, an Adobe Swatch Exchange (.ase) file for Photoshop and Illustrator, a plain HEX list, or a PNG image of the swatches.
No. The colours are calculated in your browser and the image never leaves your device.
Related tools
Color Picker & Converter
Pick or paste any CSS colour and get HEX, RGB, HSL, OKLCH and CMYK, WCAG contrast, tints, shades and harmonies.
Adjust Image — Levels, Exposure, Colour
Fix exposure and colour precisely with levels, a live histogram, exposure, gamma, hue, white balance and auto levels.
Image Enhancer — Brightness, Contrast, Color
Improve photo quality with live adjustment controls for brightness, contrast, saturation, vibrance, warmth, highlights, shadows, sharpness, and clarity. Apply presets or fine-tune manually — all local.