How to get a colour code from an image
- Add an image: drop a photo, logo or screenshot onto the box, click to browse, or paste a screenshot with Ctrl + V.
- Find the pixel: move over the image. The magnifier shows the exact pixel under the pointer, and the codes update as you move. On a phone, drag your finger and the magnifier appears above it.
- Pick it: click (or lift your finger) to add the colour to Your picks. With a keyboard, use the arrow keys and press Enter.
- Copy the code you need: HEX, RGB, HSL, HSV or CMYK. Press CSS variables to copy every pick and the dominant colours as ready-to-paste CSS.
In Chrome and Edge you'll also see Pick a colour from anywhere on screen. It uses the browser's built-in eyedropper, so you can sample a colour from another window or app without taking a screenshot first.
Colour formats explained
| Format | Example | Use it in |
|---|---|---|
| HEX | #5A3FE0 | CSS, HTML, Figma, Canva, WordPress, most design tools |
| RGB | rgb(90, 63, 224) | CSS, Photoshop, PowerPoint, Excel; values run 0–255 |
| HSL | hsl(249, 73%, 56%) | CSS, when you want lighter or darker shades: change only the last number |
| HSV / HSB | hsv(249, 72%, 88%) | Photoshop, Illustrator, Affinity and GIMP colour pickers |
| CMYK | cmyk(60%, 72%, 0%, 12%) | Print design; ask your printer for their profile before final files |
HEX and RGB describe exactly the same colour: 5A in hex is 90 in decimal, 3F is 63 and E0
is 224. Convert any value by hand with our RGB to HEX converter.
Getting an accurate colour
- Use the best source you have. JPG compression blends nearby pixels, so the edge of a logo in a small JPG can be a few shades off. A PNG or SVG of the logo gives the true brand colour.
- Zoom in on flat areas. Photos contain noise and shading. Pick from the middle of a solid area, or use the dominant colours, which average similar pixels.
- Screens and print differ. A colour picked from a screen is RGB. The CMYK value here is a standard conversion; printed colour also depends on paper and ink, so for brand work ask for an official Pantone or CMYK value.
- Screenshots can shift colour. Some systems apply a display colour profile to screenshots. If a picked colour looks slightly off, sample the original file instead.
Build a palette from a photo
As soon as you add an image, its dominant colours appear: the most common colours, grouped so that near-identical
shades don't repeat. Click any of them to see its codes, then add your own picks for accents. CSS variables
exports the whole set as --palette-1, --pick-1 and so on, ready for a stylesheet or design tokens.