Image color picker: get the exact color of any pixel

Pick colours from a picture and make a palette.

or drop it anywhere on this page
Runs in your browser, never uploadedNo watermarkFree, no account
More samples:

Look & effects

Colour, light, blur, transparent backgrounds, cut-outs of people and colour picking.

How it works

  1. 1
    Choose a picture
    Select it or drop it on the page. It opens in this tab straight away; nothing is uploaded.
  2. 2
    Set it up
    Click the picture to pick a colour. The preview shows the result as you go.
  3. 3
    Save the result
    Press Save palette. The new picture is made on your device, ready to save.
Where your picture goes
Nowhere. It stays on this device.

The picture is read from your disk and changed inside this tab. Close the tab and nothing is left anywhere else.

What it takes
JPG, PNG, WebP, AVIF, HEIC, GIF, BMP, TIFF, ICO

It works in current Chrome, Edge and Firefox. An iPhone HEIC photo needs a reader of about 1.5 MB, loaded once. Very large pictures may be too big for your browser.

You see a colour in a photo, a logo or a screenshot and you need its code: to match a brand, set a colour in a design app, or build a palette for a website. Guessing from a swatch takes ages. Pointing at the pixel takes a second.

This image colour picker reads the colour under a crosshair and gives you its HEX, RGB and HSL codes, each with Copy. It keeps a list of the colours you pick, finds a palette of the picture's main colours, and saves both as a picture, a text file or CSS. It runs in your browser and nothing is uploaded. Below: how to pick, which code to copy, and how to save a palette.

How to get a colour from an image

  1. Press Select image, or drop a picture onto the page. JPG, PNG, WebP, AVIF, GIF, BMP, TIFF, ICO and iPhone HEIC photos all open; the picker works on one picture at a time.
  2. Move the pointer over the picture. A crosshair follows it, and a round loupe shows the pixels around it, magnified, with the centre pixel outlined.
  3. Click to pick. The crosshair stays there, the colour joins Picked colours, and its codes show under Picked colour.
  4. Press Copy beside HEX, RGB or HSL to copy that code.
  5. To keep the colours as a file, choose Save as and press Save palette.

Picked colour always shows the colour where the crosshair last stopped: the centre of the picture at first, then wherever you click. You can also use the keyboard. Focus the picture, move the crosshair one pixel at a time with the arrow keys (ten with Shift held), and press Enter to pick. Zoom in with + for small details, and press 0 to fit again; zoom changes only your view.

HEX, RGB and HSL: which code to copy

The same blue, written three ways
CodeLooks likeUse it in
HEX#3A7BD5Websites, design apps and brand guides
RGBrgb(58, 123, 213)CSS, and colour boxes that ask for red, green and blue
HSLhsl(215, 65%, 53%)CSS, when you want a lighter or darker shade by changing one number

All three describe the same colour. A HEX code from a picture is the shortest to paste; an RGB colour code gives the red, green and blue amounts from 0 to 255; HSL gives the hue in degrees, then saturation and lightness in percent. The codes are read from the full-size picture, not the smaller copy on the screen, so they are the picture's real pixel values.

One thing to know about photos: neighbouring pixels are rarely the same colour. Shadows, noise and compression make a sky or a shirt a mix of close shades, and the loupe shows this up close. Move the crosshair to a pixel that looks typical, or pick a few and compare them in Picked colours. Logos, icons and screenshots have flat areas, so one click is usually enough there.

Picked colours and the palette

Every pick is added to Picked colours, with its HEX and RGB codes. Click one to copy its HEX code, or press × to remove it. Up to 12 are kept; after that, a new pick takes the place of the oldest. Picking a colour that is already in the list does not add it twice.

The Palette shows the main colours of the whole picture as swatches with their HEX codes. Set how many with Colours in the palette, from 3 to 12; it starts at 6. Click a swatch to copy its code, or Copy all to copy every code, one per line. The palette is worked out by grouping similar shades on a small copy of the picture, 200 pixels on its longer side, so it shows the broad colours that fill the picture rather than tiny details.

Tip: A colour palette from an image makes a quick colour scheme. Choose a photo that sets the mood, take its palette, and use those colours for headings, buttons and backgrounds. Check that text stays easy to read before you use a pale colour for words.

Save the palette as a picture, text or CSS

What Save palette writes
Save asWhat you get
Picture (PNG)A card 1200 pixels wide with each colour as a swatch and its HEX code underneath; more than 12 colours wrap onto a second row
TextThe HEX and RGB codes, one per line: the picked colours, then the palette
CSSCSS custom properties, --colour-1 and on, ready to paste into a style sheet

Each file holds the picked colours first and then the palette. In the picture and the CSS, a colour you picked is not repeated in the palette part; the text file lists both in full. The Result line in the panel counts the colours the file will hold, for example PNG · 8 colours. Press Save palette, and the done screen says Your palette is ready. The file's name ends in _palette.

The PNG card is handy to drop into a mood board or a message; the CSS file goes straight into a website's styles; the text file suits notes, a brand guide or a colour field in another app.

Private, free and exact

  • The colours are read in your browser. The picture is never uploaded, and our server does no picture work.
  • It is free, with no account and no watermark. Image tools are not counted in the free daily limit, which applies to document conversions only.
  • It works in current Chrome, Edge and Firefox. Very large pictures may be too big for your browser.

Once you have a colour, other tools can use it. Make background transparent has its own Pick from picture for the colour to remove, and its remove white background from image page is set up for the most common case, a white backdrop. Adjust image colour can warm, cool or brighten a picture whose colours are not quite right.

Using the colour in a post or a banner? Make the picture the right shape for it too: the Instagram post size, the Instagram story size, the thumbnail size for YouTube, the LinkedIn banner dimensions or the Twitter header size.

Pick your colours now

Open a picture above, click the colour you need and copy its code, or save the palette as a picture, text or CSS. The image colour picker reads every code from the full-size picture, so it matches what is really there.

It is free, private and runs in your browser. Select a picture above to start.

Questions people ask

How do I get the colour code from an image?

Open the picture here and click the colour you want. Its HEX, RGB and HSL codes appear in the panel, each with a Copy button.

Is the colour exact?

Yes. The colour is read from the full-size picture, not the smaller copy shown on the screen, so the code is the pixel's real value.

Can I use the image colour picker with the keyboard?

Yes. Focus the picture, move the crosshair with the arrow keys (Shift moves it ten pixels) and press Enter to pick.

How many colours can I keep?

Up to 12 picked colours, plus a palette of 3 to 12 main colours. A new pick past 12 replaces the oldest one.

Can I get a CSS palette from a photo?

Yes. Choose CSS under Save as and press Save palette. The file lists your colours as --colour-1, --colour-2 and on.

Step by step

  1. 1

    Select a picture.

  2. 2

    Click the picture to pick colours, and set Colours in the palette.

  3. 3

    Press Save palette to keep the colours as a file.

Our cookies keep you signed in. If you accept, we also load Google Tag Manager, which runs Google Analytics and Microsoft Clarity (which records how you move around the site). None of them run unless you accept. The privacy page has the details.

Read first