01 / HEX
#9B7DFF
Red, green and blue as two hexadecimal digits each. The usual code for websites and design apps.
Free tool
Drop in a picture or paste a screenshot, then click any pixel to get its colour as HEX, RGB, HSL, HSV and CMYK, with the nearest CSS colour name. A magnifier shows the exact pixel under your pointer, and an average of 3 x 3 or 5 x 5 pixels steadies noisy photos. The colours you pick are kept for next time. The main colours of the whole picture are pulled out as a palette you can copy as CSS, JSON or a swatch picture.
Need a custom tool, app or website? Contact us →Click to pick a colour. After a click, arrow keys move one pixel (Shift moves 10) and Enter keeps the colour.
Palette of the picture
Picked
Colours you click are kept here, also for next time.
Colours are read in your browser. The picture is never uploaded.
Colour codes
01 / HEX
Red, green and blue as two hexadecimal digits each. The usual code for websites and design apps.
02 / RGB
The same three amounts from 0 to 255. Handy in code and in apps that ask for numbers.
03 / HSL
Hue, saturation and lightness. Easy to make a colour lighter, darker or calmer by hand.
Guide
An image color picker reads the colour of one pixel in a picture and gives you its code, so you can use the same colour in a design, a website or a slide. This one shows HEX, RGB and HSL for any pixel you point at, with a magnifier so you can hit the right one. It also groups the whole picture into its main colours and gives you that palette as CSS, JSON or a swatch picture.
In Chrome and Edge there is also Pick from anywhere on screen, which turns the pointer into an eyedropper for any window, not just the picture.
| Format | Example | Use it in |
|---|---|---|
| HEX | #9B7DFF | CSS, Figma, Canva, most design apps, brand guides |
| RGB | rgb(155, 125, 255) | Code, video and office apps that ask for three numbers |
| HSL | hsl(254, 100%, 75%) | CSS when you want to make lighter, darker or softer versions by hand |
The page also shows HSV (hue, saturation and value, the model many colour wheels in design apps use) and CMYK. The CMYK numbers come from the plain conversion formula with no printer profile, so treat them as a starting point and ask your printer for exact values. Below them is the closest CSS colour name, such as SteelBlue, which is handy to describe a colour in words; it says CSS NAME when the match is exact.
HEX, RGB and HSL all describe the same colour. HEX is RGB written in base 16: in #9B7DFF, 9B is 9 times 16 plus 11, which is 155, the red. 7D is 7 times 16 plus 13, which is 125, the green. FF is 255, the blue. HSL turns it into a hue (254 degrees, a violet), a saturation (100%, fully vivid) and a lightness (75%, a light shade). To get a darker violet of the same family, keep the first two numbers and lower the lightness, for example to 45%.
The tool takes an even sample of about 12,000 pixels from the picture and groups them into the number of colours you chose, using k-means clustering. Each swatch is the average colour of one group, and the percentage shows how much of the picture it covers. Swatches are sorted from the biggest share to the smallest. Mostly see-through pixels in a PNG are left out, so a logo on a transparent background gives the logo's colours, not empty space.
The same picture always gives the same palette, so you can come back and get identical codes. Copy as CSS gives you variables you can paste straight into a stylesheet, like --color-1: #1E2A38;. Copy as JSON gives each colour's HEX, its RGB numbers and its share, for code or design tokens.
macOS has a built in app called Digital Color Meter, in the Utilities folder inside Applications. It shows the colour under the pointer anywhere on the screen. Its View menu lets you show the values as hexadecimal.
Once you have your colours, check that text on them is easy to read with the colour contrast checker, and see how they look to people with colour blindness in the colour blindness simulator. For more colours that go with them, try the colour palette generator.
Questions
JPG compression and colour profiles shift colours a little. A PNG screenshot of the design gives the most exact value. The tool reads the pixel exactly as the browser shows it.
The picture is shrunk and its pixels are grouped into the number of colours you choose (k-means clustering). Each swatch is the average of one group, and the share shows how much of the picture it covers.
In Chrome and Edge, yes: "Pick from anywhere on screen" turns the pointer into an eyedropper for anything on your screen. Safari and Firefox do not offer this yet, so the button is hidden there.
Yes. Take a screenshot (on a Mac, Shift Command 4, then hold Control to copy it), click this page and press Command V.
No. The picture is read in this browser tab.
Drop the picture in, point at the colour and click. The HEX code shows in the side panel; click it to copy.
Yes. The palette under the picture shows its main colours, from 4 to 10, with how much of the picture each one covers. Copy them as CSS or JSON, or download the swatches as a PNG.
In Chrome or Edge, use Pick from anywhere on screen and click the colour on the site. In other browsers, take a screenshot, paste it here and click the colour.
Neighbouring pixels often differ a little, especially in JPG files and photos. Set Sample to a 3 x 3 or 5 x 5 average, or use the magnifier and the arrow keys to step to exactly the pixel you want.
It gives CMYK from the plain formula, without a printer profile. That is fine for a rough match, but a print shop converts with its own profile, so ask them for the final numbers.
The codes of your last 24 picked colours are kept in this browser, so they are there next time. The picture itself is not kept. Clear empties the list.