Color picker from image

Hover a pixel-level loupe over any image, click to grab HEX, RGB and HSL, and get an automatic six-color palette — instant, right in your browser.

Drop an image to pick its colors

Click to browse, drag & drop, or paste a screenshot with ⌘V

PNG · JPG · WebP · GIF · BMP — instant, right in the page

Pull exact colors out of any screenshot

Design files are where colors start; screenshots are where they end up — and the two don’t always agree. This tool reads the actual pixels of any image you drop in, so you can get the hex color from an image instead of guessing. Everything runs on canvas APIs inside your browser, reading colors straight from the decoded pixels.

How to use the color picker

  1. Add an image. Drop a file, click to browse, or paste a screenshot straight from the clipboard with ⌘V.
  2. Hover to aim. The loupe magnifies an 11×11 pixel grid around your cursor with a live hex readout, so you land on exactly the pixel you mean.
  3. Click to pick. Each pick joins a history strip and shows HEX, RGB and HSL values with one-click copy buttons.
  4. Grab the palette. Six dominant colors are extracted on load — an image color palette generator built in. Click any swatch to copy its hex.

On Chromium browsers a pick-from-screen button appears too: an online eyedropper that samples any pixel visible on your display, even outside the image.

When picking from an image beats opening the design file

The most common case is verifying rendered output against a spec. The design says the button is #2F6BFF; the screenshot from QA shows what actually shipped after themes, opacity and layer blending had their say. Picking from the screenshot settles it in seconds. The other big one is recovering a palette when there is no source file at all — an old design whose Figma is long gone, a competitor’s landing page, a poster you photographed. The automatic palette gives you honest starting swatches, and the loupe gets you exact values from the flat areas.

Color checks rarely travel alone. If the same screenshot is headed for a bug report, mark the mismatch with our screenshot annotator; if it’s going in a deck, dress it up with the screenshot mockup.

HEX, RGB and HSL at a glance

HEX

A hex code is the six-digit hexadecimal form of a color — two digits each for red, green and blue, so #2F6BFF means 47 red, 107 green, 255 blue. It’s the default currency of CSS, design tools and brand guidelines — copy it to move a color between tools unchanged.

RGB

rgb(47, 107, 255) spells out the same three channels in decimal, 0–255 each. It’s exactly as precise as hex, just easier to read and adjust channel by channel — and it extends naturally to rgba() when transparency is coming.

HSL

HSL describes color the way people think about it: hue as an angle on the color wheel, then saturation and lightness as percentages — hsl(223, 100%, 59%) is that same blue. Copy it when you want to derive hover states or tints — nudge the lightness, keep the hue.

Why a picked pixel can differ from the CSS value

Two effects cause most surprises. The first is antialiasing: at the edge of text or a rounded corner, the renderer blends foreground into background, so edge pixels belong to neither color — the loupe exists precisely so you can step off the edge and pick from a flat fill. The second is color management: a screenshot taken on a wide-gamut display (recent Macs tag captures as Display P3) passes through a profile conversion before its pixels reach this page, which can shift a channel by a point or two. Neither is a bug — both are honest records of what the screen showed. When exactness matters, pick from the middle of solid areas, on screenshots from the same machine.

Clean inputs help most of all. On a Mac, Snapix’s area capture (⌘⇧4) draws pixel-precise crosshairs with live dimensions, so the region you grab is exactly the region you meant — and every capture stays right on your machine.

Frequently asked questions

Does color picking work offline?

Yes. The image is decoded and read in your browser with canvas APIs. Once the page has loaded, picking keeps working even with your network off.

Why does the picked color differ slightly from my design file?

Two usual suspects: antialiasing and color profiles. Pixels on the edge of text or rounded shapes are blends of foreground and background, so pick from a flat fill using the loupe. And screenshots taken on wide-gamut displays (recent Macs tag shots as Display P3) go through a profile conversion that can shift a channel by a point or two.

How many colors does the automatic palette extract?

Six. The tool downscales the image to a small sample and runs a median-cut pass to find the six most dominant colors, sorted by how much of the image they cover. For anything beyond that, click around the image — every pick lands in the history strip.

Which color formats can I copy?

Every picked color is shown as HEX (#2F6BFF), RGB (rgb(47, 107, 255)) and HSL (hsl(223, 100%, 59%)), each with its own copy button. Palette swatches copy their HEX value with one click.

Which browsers support the pick-from-screen button?

It uses the native EyeDropper API, which currently ships in Chromium browsers on desktop — Chrome, Edge, Opera, Arc and friends. On Safari and Firefox the button is hidden, but picking from an image works everywhere.

Can I pick colors from an iPhone HEIC photo?

Most browsers cannot decode HEIC directly. Convert the photo with the free HEIC to JPG tool on this site first, then drop the JPG here.

Capture exactly the pixels you need

Snapix’s area capture (⌘⇧4) draws pixel-precise crosshairs with live dimensions, so the right pixels are in the shot from the start. Annotate with 15 tools, extract text with on-device OCR, and every capture stays on your Mac.

Get Snapix

Free for 14 days · macOS 14+ · See pricing

Going? Take Snapix with you.

Every Pro feature — capture, annotate, blur, extract text — free for 14 days on your Mac. No credit card.

Start my free trial

Sign in with Apple or Google — your download starts right after.