Image Color Picker

Click anywhere on your image to grab its HEX and RGB color. Runs in your browser.

or drag & drop

In your browser · No upload

How to pick a color from an image

Upload a photo or screenshot and click anywhere on it — cutbg reads that exact pixel and shows the HEX and RGB value, ready to copy into your design tool or CSS. Every color you pick is saved as a swatch below.

Private by default

The image is read on a canvas in your browser — it never leaves your device.

Pick a color from an image: HEX, RGB and why values differ

What the picker does, exactly

Drop a photo, screenshot or logo and click on it. The tool reads one pixel — the one under your click — and shows it as HEX (#1e88e5) and RGB (rgb(30, 136, 229)). Copy puts the HEX code on your clipboard. Right after loading, the center pixel is picked so you see a value immediately.

Each new color goes into a row of up to eight recent swatches. Clicking a swatch brings back its HEX and RGB, so you can sample a button, its border and the page background, then go back to whichever you need.

What it doesn't do, so you don't go looking for it:

  • No averaging. It's always a single pixel, not a 3×3 or 5×5 average.
  • No HSL, CMYK or Pantone output — HEX and RGB only.
  • No picking outside the image. It only sees the file you dropped, not the rest of your screen.

Workarounds for each are below. One more detail: images over about 16.7 megapixels (a 48 MP phone photo, for example) are scaled down when loaded, and a note says so. On those, each pixel you click is already a blend of a few original pixels.

Single pixel vs. an averaged sample

A single pixel is exactly right for flat graphics: logos, UI screenshots, illustrations. In photos it can mislead, because neighboring pixels differ through sensor noise, texture and JPEG compression. Two clicks a few pixels apart on a plain wall often return HEX codes that differ by several units in every channel.

If you want the typical color of an area rather than one pixel:

  1. Click three or four spots in the area and compare the swatches; pick the one in the middle of the range.
  2. Or shrink the image first with Resize Image — downscaling blends neighboring pixels together, so each pixel of a small copy is effectively an average of a block of the original. Then pick from the small copy.

Avoid edges. Text and shapes are anti-aliased: pixels along an edge are a mix of the foreground and background, so clicking the rim of a letter gives an in-between shade that exists nowhere in the design.

HEX, RGB and HSL

All three describe the same sRGB color; they're just written differently.

Format Example Where it's used
HEX #1e88e5 CSS, Figma, Canva, brand guides, theme settings
RGB rgb(30, 136, 229) CSS, Office color dialogs, design-tool sliders
HSL hsl(208, 79%, 51%) CSS; handy for making lighter/darker variants

The picker gives HEX and RGB. To get HSL, paste the HEX into the color field of Figma, Photoshop or your browser's DevTools and switch the format there. HSL is worth the extra step when you need tints of a brand color: keep the hue and saturation, change only the lightness.

Why the picked color can differ from what you see

Color profiles. The image is drawn onto a canvas in the sRGB color space, the browser default and the space that CSS HEX codes live in. If the file carries a different profile, the browser converts each pixel to sRGB before the tool reads it. iPhone photos are tagged Display P3, and Mac screenshots carry the profile of the display they were taken on (Display P3 on recent MacBooks, or your external monitor's own profile).

We checked this in Chrome: a PNG filled with the value 200, 60, 60 and tagged Display P3 reads as #d92a34 (217, 42, 52), not #c83c3c. The same values in an untagged file read as #c83c3c. That's correct: #d92a34 is the sRGB code for how that P3 color actually looks. But it means the HEX won't match the raw numbers inside the file or what a P3-aware app like Photoshop shows when it's working in P3.

Colors outside sRGB get clipped. Display P3 holds more saturated reds and greens than sRGB can describe. In the same test, pure P3 red and pure sRGB red both came out as #ff0000, even though the P3 one looks visibly more intense on a P3 screen. If a vivid color in a photo looks stronger than its swatch, that's why — no sRGB HEX code can reproduce it.

Transparent pixels. A fully transparent pixel reads as #000000. A semi-transparent pixel gives its own color without the background it would sit on — a 50%-transparent blue reads as that blue, not the lighter mix you see on a white page. Pick from the visible, solid part of a logo.

Copying colors from a website, app or game

Take a screenshot (Windows: Win + Shift + S; Mac: Cmd + Shift + 4; iPhone: side button + volume up; most Android phones: power + volume down) and drop it here.

  • Night Shift, Night Light and True Tone tint what you see, so a swatch may look off next to the original on screen. Compare colors with them turned off.
  • A site's dark mode is a different set of colors entirely — screenshot the theme you actually want.
  • In games, pick from a flat UI element (a health bar, a menu panel), not the 3D scene: lighting, fog and post-processing change the color from frame to frame.
  • For a website, the true value is in the CSS. Right-click the element → Inspect and read the color or background-color there — it's exact, while a screenshot is a rendering of it.

Picking colors outside the image

Chrome and Edge on desktop (version 95+) support the EyeDropper API, which lets a web page pick any pixel on your screen. Firefox, Safari and mobile browsers don't support it, and this tool doesn't use it. You can use these instead:

  • Chrome/Edge DevTools: open any color swatch in the Styles panel and use the eyedropper icon.
  • Windows: PowerToys Color Picker, default shortcut Win + Shift + C. It copies HEX by default and keeps a history of 20 colors.
  • Mac: Digital Color Meter (Applications → Utilities). Set the pop-up menu to sRGB so the values match CSS, and copy with Shift + Cmd + C.

Checking contrast for accessibility

If you're picking a text color and its background, check the pair against WCAG before using it:

Level Normal text Large text (18 pt+, or 14 pt+ bold)
AA 4.5:1 3:1
AAA 7:1 4.5:1

Icons, input borders and other UI parts need 3:1 against what's next to them. The thresholds aren't rounded, so 4.49:1 fails AA. Pick both colors here, paste the two HEX codes into a contrast checker, and if the ratio is short, darken the text by lowering HSL lightness a few points. Pick text colors from the middle of a letter's stroke, not the edge, or the anti-aliasing will make the contrast look lower than it is.

Related tools

  • Cut the subject out, then sample it without the background: Remove Background.
  • Isolate a small detail so it's easier to click: Crop Image.
  • Use a picked color as the Apple touch icon background in the Favicon Generator.

Related tools

Frequently asked questions

What color formats do I get?
Both HEX (like #3ba55d) and RGB values for every pixel you click, ready to paste into CSS or a design tool.
Can I pick several colors?
Yes — each color you click is saved as a swatch, so you can build a small palette from one image.
Is my image uploaded?
No — the picker reads pixels from a canvas in your browser; the image never leaves your device.