Image Tools
Get a Color Palette from an Image
Pull the main colours out of a photo, logo or screenshot and copy them as HEX, RGB or HSL.
- Runs in your browser
- Image is not uploaded
- Built by Derar Sattouf
Guide
About the Color Palette Generator
The palette generator finds the dominant colours in a photo, logo or screenshot and lists each one with its HEX, RGB and HSL value. Choose from 2 to 12 colours, copy one value, the whole list or ready-made CSS variables, and click anywhere on the image to pick one exact colour. The image is read in your browser and never uploaded.
By Derar Sattouf · Last updated November 2026
How to use it
- 01Add an image.
- 02Move the Colors slider to choose how many colours you want, from 2 to 12.
- 03Click a HEX, RGB or HSL value to copy it, or use Copy HEX list or Copy CSS variables.
- 04Click a spot on the image to read the exact colour of that pixel.
Features
- 2 to 12 colours, most common first
- HEX, RGB and HSL for every colour
- Copy values, HEX list or CSS vars
- Click the image to pick the colour of a single pixel
- Reads the image on your device; nothing is uploaded
Frequently asked questions
Is my image uploaded?
No. This tool runs in your browser: the image is opened and processed on your device and is never sent to my server or to anyone else. Only the page itself is loaded from my hosting provider, which keeps standard request logs (time, IP address and URL), as it does for every page.
How are the dominant colours found?
The tool counts the colours of a reduced copy of the image and groups similar ones with the median cut method: it keeps splitting the colours into groups along their widest range until it has the number you asked for. Each palette colour is the average of one group, and the percentage is that group's share of the pixels.
Why do the colours change when I change the number?
Each palette colour is the average of a group of similar pixels. With fewer colours the groups are larger, so the averages shift; with more, smaller accents get an entry of their own. For one exact colour, click that spot on the image instead.
Can I use the palette in CSS?
Yes. Copy CSS variables gives a :root block with one custom property per colour, named --color-1, --color-2 and so on, ready to paste into a stylesheet.
Are transparent areas counted?
No. Pixels that are more than half transparent are skipped, so a logo on a transparent background gives the colours of the logo only.
Is it free? Do I need an account?
Yes, it is completely free with no sign-up, no watermark on your results and no daily quota. Open the page, add your images and download the output.