Color Picker from Image: Get HEX and RGB Codes

Open or paste a picture, hover to magnify the pixels and tap to get the HEX, RGB, HSL and CMYK codes of any spot.

Pick a color from an image and get its code. Drop in a photo, screenshot, logo or design (or paste one with Ctrl or ⌘ + V), then move over it: a magnifier shows the pixels under your pointer and the shade beside it, and a click or tap keeps it. Each pick shows HEX, RGB, HSL, HSV, CMYK and the nearest CSS name, with buttons to copy the HEX, the RGB or every format at once. Photos are noisy, so you can average a 3 × 3, 5 × 5 or 9 × 9 square instead of reading one exact pixel, which gives the shade your eye actually sees. Picks build up in a list that's saved in this browser (up to 40), and Copy as CSS variables turns them into code for a stylesheet. Under the image, the tool also finds the main shades of the whole picture (4 to 12 of them) for a quick palette. In Chrome and Edge there's also a button to pick from anywhere on your screen, outside the image. Everything happens in your browser: the file isn't uploaded anywhere. To mix or adjust a shade by hand, use the Color Picker; for palettes built from rules, the Color Palette Generator.

or drop or paste a screenshot (Ctrl+V). It stays on your device.

Open a picture, then move over it to see the pixels up close. Click or tap to pick a shade; your picks are kept below.

Common use cases

  • Match a brand shade from a logo or screenshot
  • Get the exact HEX code of a shade in a photo for a design
  • Build a palette from a photo you like
  • Check the shades used on a website

How to use

  1. Drop, choose or paste an image.
  2. Move over it and click (or tap) to pick a shade.
  3. Set the sample size to average noisy photos.
  4. Copy the HEX, RGB or all formats, or copy every pick as CSS variables.

FAQ

Why is the code slightly different from what I expected?

Photos and compressed images mix nearby pixels, and many apps add shading. Averaging a 5 × 5 square usually gives the shade you see; the exact pixel can differ by a few steps.

Is the CMYK value exact for printing?

It's a plain conversion from screen RGB. Printers use profiles for their inks and paper, so treat it as a starting point and check a proof.

Are my images uploaded?

No. The image is read in your browser and never leaves your device; only your list of picks is remembered, in this browser.

Can I pick from outside the image?

In Chrome and Edge, use the screen picker button. Other browsers don't offer it yet.