Like the Photoshop eyedropper

Image color picker

Updated

Upload an image or paste a screenshot and click anywhere to get its color in HEX, RGB and HSL. The magnifier with zoom lets you pick the exact pixel, the color stays on the right so you can copy it with one click, and you also get the image's color palette, contrast and shades for your website. Free and without uploading the image.

Watch the video tutorialHow to get a color from an image in a minute and a half

Just want to try it?

  • Free
  • Magnifier and zoom
  • HEX, RGB and HSL
  • Automatic palette
  • Your image isn't uploaded
Picked color

Click anywhere on the image and the color will appear here.

Everything happens in your browser: your image never leaves your device.

How to get the color from an image in 4 steps

  1. Screenshot of a website pasted into the image color picker

    Upload the image

    Drag it, choose it or paste a screenshot with Ctrl+V.

  2. Color picker magnifier enlarging the pixels of a sunset

    Zoom in

    Hover over it: the magnifier enlarges the pixels so you can pick the exact one.

  3. Panel with the picked color and its HEX, RGB and HSL codes

    Click the color

    The color stays in the panel with its HEX, RGB and HSL codes.

  4. Button to copy the HEX code with the color copied notice

    Copy it

    Copy the code with one click and use it on your website, in Photoshop or in Canva.

Video tutorial: how to get the color code from an image

In this video you'll see how an image is uploaded, how to pick a color with the color picker, how to zoom in for precision, how to copy the HEX, RGB and HSL codes and how to get the color palette of the image. Click a chapter to jump straight to that part.

The video only loads from YouTube when you press play, and YouTube may then set its cookies. More information in the cookie policy.

Eyedropper with magnifier: the exact pixel

Just like the Photoshop eyedropper, but in your browser:

  • Magnifier: enlarges the pixels around the cursor and marks the center one.
  • Zoom: up to 3200% to pick a color on a thin edge, an icon or text.
  • Click: the color stays on the right and is added to the saved colors list.

It also works with the keyboard: move the magnifier with the arrow keys and pick with Enter.

Color picker magnifier with the pixel grid and the picked pixel in the center

The image color palette

When you upload the image its main colors are calculated, ideal for getting the colors of a logo, a product photo or a website you like:

  • Sorted from most to least common in the image.
  • Copy as CSS: --color-1, --color-2… variables ready for your stylesheet.
  • Download PNG: a strip with the colors and their codes to share it.
Sunset landscape with its eight-color palette and HEX codes

Colors ready for your website

Each picked color comes with what you need to use it on a website:

  • Contrast on white and on black with the WCAG rating: AAA, AA or fail.
  • Shades lighter and darker for backgrounds, borders and button states.
  • CSS variable to paste straight into your code.
Picked color with its contrast on white and black, its shades and the CSS variable

Contrast, accessibility and Google

If you test your website with PageSpeed Insights or Lighthouse, the accessibility section warns you when text doesn't contrast enough with its background: "Background and foreground colors do not have a sufficient contrast ratio". Search Console doesn't show this warning and contrast isn't a direct ranking factor, but text that's hard to read makes the experience worse for your visitors.

  • Normal text: minimum contrast of 4.5:1 to meet the WCAG AA level.
  • Large text (24 px, or 18.66 px bold) and buttons or icons: minimum of 3:1.
  • AAA level: 7:1 for normal text, the strictest.

Pick your text color with the eyedropper, check its rating on white and on black and, if it falls short, use one of the darker or lighter shades until it shows AA.

Insufficient contrast warning in an accessibility report next to a hard-to-read text and an easy-to-read text with their contrast ratios

HEX, RGB or HSL: which to use

All three represent the same color. HEX (#FF6B3D) is the most common format in CSS, Photoshop, Figma or Canva. RGB (rgb(255, 107, 61)) is useful when you need transparency with rgba(). HSL (hsl(14, 100%, 62%)) separates hue from lightness, so it's the most convenient for creating lighter or darker variations of the same color.

Frequently asked questions

How do I get the color from an image?

Upload the image or paste a screenshot with Ctrl+V, hover over it and click the color. It appears on the right with its HEX, RGB and HSL codes ready to copy with one click.

How do I get a color from a website?

Take a screenshot (Print Screen on Windows or Cmd+Shift+4 on Mac), paste it here with Ctrl+V and click the color you want.

What is the difference between HEX, RGB and HSL?

They're three ways of writing the same color. HEX (#FF6B3D) is the most common on websites and in design, RGB gives the amount of red, green and blue, and HSL uses hue, saturation and lightness, which is handy for creating variations.

How do I pick an exact pixel?

Zoom in with the buttons or with Ctrl and the mouse wheel. The magnifier enlarges eleven by eleven pixels and marks the center one, which is the one picked when you click.

What is the image palette?

It's the main colors of the image, calculated by grouping similar pixels and sorted from most to least common. You can copy them as CSS variables, as a list of HEX codes or download them as PNG.

What is the contrast for?

It tells you whether the color is readable as text on a white or black background according to the WCAG accessibility guidelines: AA requires at least 4.5:1 and AAA, 7:1.

Does it work with transparent PNGs and SVG?

Yes. You can upload JPG, PNG, WebP, GIF, AVIF or SVG. In transparent areas the color taken is the pixel's, without the background.

Does it work on my phone?

Yes. Tap the image to pick the color; the magnifier briefly appears over your finger so you can see the picked pixel.

Is my image uploaded to a server?

No. Everything happens in your browser and the image never leaves your device.

Is it free?

Yes, free and with no sign-up.

Was this tool helpful?

Your rating helps other people find it and helps us improve it.

Your rating, from 1 to 5 stars

–of 5

No ratings yet. Be the first to rate it!

  • 5 ★0stars: 0 votes
  • 4 ★0stars: 0 votes
  • 3 ★0stars: 0 votes
  • 2 ★0stars: 0 votes
  • 1 ★0star: 0 votes

Real ratings from people who use this website: one vote per person and tool, no incentives, and we never remove negative ones. How they work.