How to find the color of an image (5 methods)

The fastest way to find the color of an image is to open a digital eyedropper, point at the pixel you care about and copy the code. You can do it right in your browser, with nothing to install, using the image color picker on this site: upload or paste the image, click the spot you want and get the value in HEX, RGB, HSL, HSV and CMYK.

If you already work in a design app or in DevTools, you can solve it there too. Below are five methods, from the simplest to the most specialized, plus the built-in operating system shortcuts and the details that make sure the code you capture is really the color you see.

Method 1: the online tool on this site

This is the way to go when you have a file, a screenshot or a photo and want the code without opening heavy software. Everything happens inside the browser.

  1. Load the image. Click the upload area and choose a file, drag the image onto it, or paste from the clipboard with Ctrl+V (Cmd+V on a Mac). Pasting is the shortcut for screenshots: take the screenshot and paste it straight into the page.
  2. Use the magnifier. As you move the cursor over the image, a loupe shows the enlarged pixels around the pointer. That keeps you from accidentally clicking the edge of a letter or a shadow.
  3. Click the pixel. The color is locked in and the codes appear in several formats, each with its own copy button.
  4. Grab colors outside the image if needed. The “Pick from screen” button opens the system eyedropper (the EyeDropper API, available in desktop Chrome and Edge) so you can sample any visible point, even in another window.

The tool also shows the closest named color. If you clicked a dark blue and the result points to navy blue, that color’s page gives you ready-made combinations and variations.

Method 2: the browser eyedropper

If you build websites, your browser already ships with an eyedropper. It’s handy for grabbing the color of anything on a web page: a button, a background or an image.

Chrome and Edge

  1. Open DevTools with F12 or Ctrl+Shift+I (Cmd+Option+I on a Mac).
  2. In the Styles pane of any element, click the small color swatch next to a property such as color or background-color.
  3. In the color picker that opens, turn on the eyedropper icon and click anywhere on the page. The property now holds the sampled color, and you can switch the displayed format (HEX, RGB, HSL and more) inside the picker.

Both browsers also implement the EyeDropper API, which lets a website open the system eyedropper with one click. That API is what powers the “Pick from screen” button in the previous method. It isn’t available in Firefox or Safari yet; check MDN for current details.

Firefox

Firefox has its own eyedropper in DevTools. In the Inspector, look for the eyedropper icon in the toolbar: when it’s active, a magnifier follows the cursor, and clicking copies the HEX code to the clipboard. The color picker in the Rules view has an eyedropper too, just like in Chrome.

Keep in mind: the browser eyedropper reads the color as rendered on screen. If the image is scaled down, has a CSS filter or sits behind a semi-transparent layer, you get the final composited color, not the original pixel in the file.

Method 3: Photoshop

Photoshop lets you control the sampling area, which matters a lot with photographs.

  1. Select the Eyedropper tool from the toolbar or press I.
  2. In the options bar, set the Sample Size. “Point Sample” reads one exact pixel; the 3 × 3 and 5 × 5 Average options average the surrounding pixels, which smooths out noise and grain.
  3. Click the image. The color becomes the foreground color, visible in the Color panel and at the bottom of the toolbar.
  4. Click the foreground swatch to open the Color Picker. There you’ll find a HEX field (marked with #) along with RGB, HSB, Lab and CMYK values that you can select and copy.

Tip: hold the mouse button down and drag with the Eyedropper to update the color live, then release when you land on the right shade.

Method 4: Figma

In Figma, the eyedropper lives inside the color picker of any fill or stroke.

  1. Select a layer and click the fill swatch in the properties panel.
  2. In the picker, click the eyedropper icon or press I.
  3. Hover over the image (a loupe shows the pixels) and click. The layer takes the color, and its HEX code appears in the picker field, ready to copy.

If you only want to read the color without changing a real layer, apply it to a temporary rectangle and delete it afterward. With fine details, zoom in on the canvas before clicking so you hit the right pixel.

Method 5: on your phone

On a smartphone there are two very different situations:

Operating system shortcuts

Sometimes the color is in an app that has no eyedropper at all. Both major desktop systems have a fix:

Why the sampled color may not match

It’s common to click two areas that look “the same color” and get different codes. The usual suspects:

CauseWhat happensHow to work around it
JPEG compressionThe format groups pixels into blocks and discards detail, creating variations and artifacts near edges.Use PNG or the original file; click in the middle of flat areas.
AntialiasingEdges of text and icons blend the color with the background to smooth the outline.Use the magnifier and pick a pixel inside the shape, not on the edge.
Noise and texturePhotos vary naturally from pixel to pixel.Use area averaging (3 × 3 or 5 × 5) or the palette extractor.
Color profilesAn image in Display P3 or Adobe RGB may be converted to sRGB for display, which changes the numbers.Export in sRGB for the web and compare within the same color space.
Monitor and night modeBlue-light filters, True Tone and calibration change what you see, not the value in the file.Trust the code, not your eyes; turn filters off when comparing visually.

A practical example: a logo’s orange might be #FF5733, that is, rgb(255, 87, 51). In a heavily compressed JPEG, neighboring pixels may read as #FE5834 or #FF5631. A difference of one or two units per channel is invisible, but if you need a brand’s official value, look for its brand guidelines instead of relying on a sample alone.

What to do once you have the color

With the code in hand, the most common next steps are:

Summary

Want to go further? Browse the list of colors with their own pages or the other color guides.