UtilityNest

Color Picker from Image

Find the exact color code of any spot in a photo, logo or screenshot. Upload or paste the image, move over it with the magnifier, and click to save the color as HEX, RGB, HSL or CMYK.

Tip: you can also paste an image with Ctrl+V (Cmd+V on Mac).

How to use Color Picker from Image

  1. 1Upload, drop or paste (Ctrl+V) an image.
  2. 2Move over the image; the magnifier shows the pixels.
  3. 3Click to save a color (on a phone, drag and lift).
  4. 4Copy HEX, RGB, HSL or CMYK.
  5. 5Copy all saved colors as HEX or CSS.

Pixel-exact, checked

Many color pickers shrink your picture first and read the color from the smaller copy, which blends neighboring pixels. This one reads the image at full size, up to 6,000 pixels on the long side, so the code you get is the pixel itself.

We tested it on a 4000 × 3000 image with a single green pixel (rgb 0, 200, 0) on a white background. With the arrow keys on that pixel, the picker read exactly #00C800. Switching to the 3 × 3 average read rgb(227, 249, 227), which is the true average of that pixel and its eight white neighbors. Use the average setting for photos, where single pixels are noisy, and 1 pixel for logos, screenshots and flat designs.

1 pixel or 3 × 3 average: what we measured

Photos are noisy. Two pixels side by side on the same painted wall rarely have the same code, and a JPEG adds its own small errors. To show how much this matters we made a photo-like test patch: a terracotta color (rgb 196, 120, 84) with the kind of grain a phone camera adds, saved as a JPEG at quality 85. We read 192 spots spread across the patch.

  • Single pixels swung across a range of 57 steps in each channel (on a 0 to 255 scale), enough to turn terracotta into either a pale clay or a brick red.
  • The 3 × 3 average at the same 192 spots swung across only 18 steps, about a third as much.

So for a photo of a real object, the average gives a code you can trust. For a logo, an icon or a screenshot of a website, where every pixel of a color is identical, use 1 pixel, or the average will blend in the edge of a neighboring color.

Why your code is a little off from the official color

If you pick a brand color from a JPEG and get a code one or two steps away from the official one, the picker is not wrong; the file changed the color. We saved a flat navy area (#1E3A8A) as a JPEG three times:

JPEG qualityMiddle of the navy areaTwo pixels from a white edge
95#1E3B8B#1F398E
70#1E3B8B#203996
40#1D3A8A#243A86

The middle of a flat area stays within one step even at low quality, but pixels next to an edge drift much further (up to 12 steps in blue here). Two habits fix most of this: pick from the middle of a large area of the color, not next to text or a border, and use a PNG or a screenshot instead of a JPEG when you have one. If the color comes from a brand, its official guide is still the final word.

Matching a paint, fabric or makeup color from a photo

A photo records the light as much as the object. The same blue sofa reads warmer under a lamp and cooler by a window, and a shadow can darken it by a third. For the closest match:

  • Photograph in daylight from a window, without flash, and fill the frame with the object.
  • Pick from a flat, evenly lit part: not the shiny highlight, not the shadow in a fold.
  • Use the 3 × 3 average, then save two or three picks from different spots and compare them in the saved list.
  • Put a sheet of white paper in the same photo. If the paper reads as cream or blue instead of near white, the whole photo is tinted, and the object's code is tinted the same way.

Treat the code as a strong starting point for a paint store or a fabric search, then confirm with a physical sample. Screens and printers show the same code differently.

Where to paste each format

WhereUseHow it looks
CSS, HTML, Figma, CanvaHEX#1E3A8A
Word, PowerPoint, ExcelRGB (More Colors, Custom)30, 58, 138
Making a lighter or darker shadeHSL (change only the last number)hsl(224, 64%, 33%)
Print shop or printed flyerCMYK, as a starting point78, 58, 0, 46

A print shop that asks for a Pantone number needs a swatch match, which no formula gives exactly; send the CMYK and ask them to proof it.

How to pick a color

  1. Upload an image, drop it on the page, or press Ctrl+V to paste a screenshot.
  2. Move over the image. The magnifier shows the 11 × 11 pixels around the cursor, and the codes update live.
  3. Click to save the color. On a phone, put your finger down, drag until the magnifier above your finger shows the right spot, then lift.
  4. Use the arrow keys to move one pixel at a time, or ten with Shift, and Enter to save.

In Chrome and Edge on a computer you can also press Pick a color from anywhere on screen to grab a color from another window or app, with no upload at all.

Every format, plus a contrast check

Each color comes as HEX for web and design tools, RGB and HSL for CSS, and CMYK as a starting point for print. CMYK here is a simple conversion; a printer working from a specific color profile may adjust it.

The two Aa boxes show white and black text on the color with its WCAG contrast ratio. 4.5:1 passes AA for normal text and 7:1 passes AAA. Pure green #00C800, for example, scores 2.27:1 with white text (fails) and 9.26:1 with black text (passes AAA), so black is the readable choice for a button in that color.

Build a palette as you go

Saved colors collect in a list under the picker and stay on this device for your next visit. Copy them all as HEX codes, or as CSS variables ready for a stylesheet. Need the main colors of a whole image instead of single pixels? The Color Palette from Image tool finds them automatically.

Frequently asked questions

How do I find the HEX code of a color in an image?

Upload or paste the image, hover over the color and read the HEX line, or click to save it. Press Copy next to HEX to copy the code.

Does it work on iPhone and Android?

Yes. Drag your finger across the image and a magnifier appears above it. Lift your finger to save the color under the center square.

Is my image uploaded?

No. The image is read inside your browser and never leaves your device.

Can I pick a color from my screen, not an image?

In Chrome and Edge on a computer, yes: press Pick a color from anywhere on screen. On other browsers, take a screenshot and paste it with Ctrl+V.

Why does the picker give a slightly different code from the brand's official color?

JPEG saving shifts colors a little, most of all next to edges. In our test a navy area stayed within one step in the middle but moved up to 12 steps two pixels from a white edge. Pick from the middle of a large patch, and use a PNG or screenshot when you can.

Can it give me a Pantone code?

No. Pantone colors are matched with physical swatches, and there is no exact formula from RGB. Use the HEX or CMYK code here and ask your printer for the closest Pantone match and a proof.