Black Friday: 50% off every paid plan with code BF50. Ends 5 December.

See prices

Free tool

Image color picker, and its palette.

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 

Colours are read in your browser. The picture is never uploaded.

Colour codes

One colour, three ways to write it.

01 / HEX

#9B7DFF

Red, green and blue as two hexadecimal digits each. The usual code for websites and design apps.

02 / RGB

rgb(155 125 255)

The same three amounts from 0 to 255. Handy in code and in apps that ask for numbers.

03 / HSL

hsl(254 100% 75%)

Hue, saturation and lightness. Easy to make a colour lighter, darker or calmer by hand.

Guide

How to pick a colour from an image, down to the exact pixel.

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.

How to use the image colour picker

  1. Drop a picture on the box, click to choose one, or paste a screenshot. JPG, PNG, WebP, GIF and HEIC work.
  2. Move the pointer over the picture. The magnifier shows the pixels around it, with the one you are on outlined, and the side panel shows its codes.
  3. Click to keep that colour. It goes to the Picked list, which holds your last 24 and is still there when you come back. Copy all copies the list, one HEX code a line, and Copy as CSS gives them as variables.
  4. For a precise pick, use the arrow keys after a click to move one pixel at a time (hold Shift to jump 10), then press Enter to keep it.
  5. Click any value (HEX, RGB, HSL, HSV, CMYK or the colour name), or any swatch, to copy it.
  6. On a photo or a JPG, set Sample to 3 x 3 average or 5 x 5 average, so one odd pixel does not change the answer. The magnifier outlines the square it averages.
  7. Under Palette of the picture, pick how many Colours you want, then Copy as CSS, Copy as JSON or Download swatches PNG.

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.

HEX, RGB and HSL: which one to copy

FormatExampleUse it in
HEX#9B7DFFCSS, Figma, Canva, most design apps, brand guides
RGBrgb(155, 125, 255)Code, video and office apps that ask for three numbers
HSLhsl(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%.

How the palette is made

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.

  • 4 to 5 colours give a tight brand style palette: a background, a main colour and an accent or two.
  • 6 colours is the default and suits most photos.
  • 8 to 10 colours pull out small accents, such as a red jacket in a mostly green landscape.

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.

Why a colour may look slightly off

  • JPG compression blends neighbouring pixels, so a flat colour in a JPG can vary by a few points from pixel to pixel. Use a 3 x 3 or 5 x 5 average, pick from the middle of a flat area, or use a PNG.
  • Edges of text and shapes are smoothed, so a pixel on the edge is a mix of two colours. Move one or two pixels inward with the arrow keys.
  • Photos rarely have one true colour for an object. Light and shadow change it across the surface. The palette's average is often a better pick than a single pixel.
  • Colour profiles in some files and screens shift colours a little. A PNG screenshot of a design gives the closest value to what you see.

On a Mac

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

Good to know.

Why is the colour slightly different from my design file?

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.

How is the palette made?

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.

Can I pick a colour outside the picture?

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.

Can I use it on a screenshot?

Yes. Take a screenshot (on a Mac, Shift Command 4, then hold Control to copy it), click this page and press Command V.

Is my picture uploaded?

No. The picture is read in this browser tab.

How do I get the HEX code of a colour in a picture?

Drop the picture in, point at the colour and click. The HEX code shows in the side panel; click it to copy.

Can I get a colour palette from an image?

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.

How do I pick a colour from a website?

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.

Why do I get a different colour each time I click the same spot?

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.

Does it give CMYK for print?

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.

Are my picked colours saved?

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.

Listed on

Listed on JustMacAppsMotionShine on Mac App IndexMotionShine on ScrollLaunchMotionShine featured on StartupBaseFeatured on FazierFeatured on Twelve ToolsMotionShine - Featured on Smol Launch