Image Colour Picker
Pick colours from any image as HEX, RGB and HSL, and see its main colour palette. Click, tap or use the keyboard.
Runs in your browser. Nothing is uploaded.
Add an image to pick colours from it.
Main colours
Picked colours
How to use the Image Colour Picker
- Drop an image on the page, or browse for one.
- Move over the image to preview colours, and click or tap to pick one.
- Click any value (HEX, RGB or HSL) or swatch to copy it.
- See the image's main colours in the palette below.
Find the exact colour
Need to match a brand colour from a logo, reuse a colour from a photo in a design, or find out what shade a paint sample really is? Load the image and point at the colour. The picker shows it in HEX, RGB and HSL, ready to paste into CSS, a design app or a document.
Picking colours
Move the pointer over the image to see the colour under it update live. Click or tap to add it to your picked colours, which stay listed so you can compare several. On a keyboard, focus the image, move the picker with the arrow keys (Shift for bigger steps) and press Enter to pick.
Photos rarely have perfectly flat colours: noise and texture make neighbouring pixels differ. A 3 × 3 or 5 × 5 sample averages the surrounding pixels for a more representative result.
The image’s palette
Below the image, the tool extracts the main colours, from 4 to 12, with how much of the image each covers. It uses median cut: it repeatedly splits the image’s colours into groups along their widest range, then averages each group. It’s a quick way to build a colour scheme from a photo or check the colours in a logo.
Colour formats
- HEX is the six-digit code used on the web and in most design tools.
- RGB gives red, green and blue values from 0 to 255.
- HSL describes hue (the colour angle), saturation and lightness, which is handy for making lighter or darker variants.
Swatches show black or white text depending on which is easier to read on that colour.
Your image is analysed in your browser and is never uploaded.
Frequently asked questions
What formats are the colours shown in?
HEX (#0a7e3a), RGB (rgb(10, 126, 58)) and HSL (hsl(145, 85%, 27%)), the formats used in CSS, design apps and most software.
Why does the colour change slightly as I move?
Photos have subtle variation pixel to pixel. Choose a 3 × 3 or 5 × 5 average under Sample size for a steadier, more representative colour.
How is the palette worked out?
The image is sampled and split into groups of similar colours using the median-cut method. Each swatch is the average of a group, with its share of the image.
Can I pick colours from outside the image?
In Chrome and Edge, Pick from screen opens the system eyedropper so you can pick from anywhere on your screen.
Tutorials
How to get the HEX colour code from an image
Pick a colour from a photo or logo and copy its HEX, RGB or HSL value, and extract a palette of the main colours.