Color Extractor
Find the main colours of an image, with HEX, RGB and HSL codes.
How it works
- 1Choose an image.
- 2Pick how many colours you want.
- 3Click a colour to copy its code.
Features
- 3 to 12 dominant colours with their share of the image.
- HEX, RGB and HSL, one click to copy.
- Export as CSS variables.
- Private: runs in your browser.
Frequently asked questions
How are the colours found?
The image is scaled down and its pixels are grouped by similarity (k-means); each group's average is one colour.
Why don't I see a small accent colour?
Colours covering a tiny area can be merged into bigger groups. Ask for more colours.
Is my image uploaded?
No. Everything happens in your browser.
Related tools
Palette GeneratorBuild a colour palette from one colour using colour theory: analogous, complementary, triadic and more.Image CompressorMake JPG, PNG and WebP images smaller without visible quality loss.EXIF ViewerSee the hidden EXIF data in a photo: camera, settings, date and location.Add Border to ImageAdd a border, or pad a photo to a square or story shape without cropping it.