← All postsPerson using Color Picker Image on a laptop for a real brand matching task

Pull an Exact Brand Red from a Packaging Photo

Click a flat area of a client photo to read its hex, RGB and HSL, avoid shadow and highlight traps, and check text contrast.

color picker imagebrand colorhex codesample color from photopackaging designdesign handoffdesign toolsbrowser tools
5 min readDesign & Marketing

A client emails a phone photo of their product box and writes, "Can the website use this red?" There is no brand guide, no hex code, and the person who designed the packaging left years ago. You need a value you can drop into a stylesheet and a design ticket, and you need it today. The Color Picker from Image lets you click a spot on the photo and read the colour of that exact pixel as hex, RGB and HSL.

The picture is drawn onto a canvas inside your browser, so the client's photo is not uploaded anywhere. The clip below shows a pick being made.

How to Pick Any Color from an Image Onli

How to Pick Any Color from an Image Onli

What happens when you click

Drop an image on the upload area. Any image type your browser can display works, with a warning above 50 MB. The picture is painted at its original pixel size and shown scaled to fit, and the pointer turns into a crosshair. Click a spot and three panels appear: HEX, RGB and HSL, with a swatch beside the hex value. A click only displays the values. Press the copy icon next to one panel to put that text on the clipboard.

Your click is translated back to the source image's real pixel coordinates, so a large photo shown small still reports the exact pixel under the pointer. Only the latest pick is shown, so copy or note a value before you click again.

Worked example: three clicks on one red box

Say the box panel looks red in the photo. Clicking a flat, evenly lit area might give #c8102e, which is rgb(200, 16, 46) and hsl(350, 85%, 42%). Those numbers are invented for illustration, but the conversions are real. If you click a shaded fold along the box edge you might read #9e0c24, which is rgb(158, 12, 36), hsl(350, 86%, 33%). A glossy highlight might give #e03c50, rgb(224, 60, 80), hsl(353, 73%, 56%).

Look at what changed. The hue stays near 350 degrees in all three. What moves is lightness: 33, 42 and 56 percent. That is the whole lesson of sampling from photos: shadow and highlight change lightness, not identity. The right answer for the brand fill is the flat middle value, #c8102e, not the darkest or brightest pixel.

Steps

  1. Pick the best source. A flat export, a PNG screenshot of a website or a scan of the packaging is far better than a dark phone photo.
  2. Upload the image and wait for the canvas to show it.
  3. Click the middle of a large, flat area of the colour you want. Avoid edges, text, glare and shadows.
  4. Click three or four nearby spots and compare the values. If they agree within a few steps, you have a stable colour. If they wander widely, the area is textured or the photo is noisy.
  5. Copy the hex value into your ticket with a note on where you sampled it and from which file.
  6. If your stylesheet wants a different format, use the copy icon on the RGB or HSL panel instead, or run the hex through the Color Converter, which also gives HSV, HWB and CMYK.

Why the value will not match the design file

The tool reads the decoded pixel on your screen, so every step that changed the picture before it reached you can shift the number by a few steps. JPEG compression, resizing, colour profile conversion and a phone camera's white balance all do this. A red box under a warm kitchen light will not read the same as under daylight, and no picker can undo that.

For the most dependable match, sample a flat area of a PNG or the original export rather than a compressed copy. Treat a picked colour as a close approximation, and ask the client to confirm it against their printed brand guide or supplier proof if exact reproduction matters. On-screen RGB says nothing about how ink will look, so this is a poor basis for print work.

Precision, without a magnifier

There is no zoom control, and the canvas is displayed at most about 500 pixels tall. On a large image, one screen pixel covers several source pixels, so landing on one exact pixel takes a steady hand. The practical fix is to crop the photo closer to the area first, using Resize & Crop or any editor, so the part you care about fills the canvas. The HSL panel is rounded to whole degrees and percentages, so converting it back may land a unit from the original hex. Keep hex as your master value.

Check the colour works for text before you commit

A brand red feels right until you put white words on it. Using the value above, the contrast between white and #c8102e is about 5.9 to 1, which clears the 4.5 to 1 WCAG level for normal text. The lighter highlight reading, #e03c50, gives only about 4.3 to 1 with white, which does not. Black text on the brand red is about 3.6 to 1, so it fails for body copy. Run your actual pair through the Contrast Checker, which compares a pair against those thresholds, before you finalize button and banner styles.

That example shows why it matters which pixel you choose. A sample from a bright highlight could pass the eye test and fail the accessibility test.

Mistakes to avoid

Sampling a shadow as the brand fill, then wondering why the buttons look muddy. Sampling a pixel on an antialiased edge, which is a blend of the red and its background. Sampling from a heavily compressed thumbnail. Trusting one click instead of comparing a few. Pasting the value into the design ticket without saying where it came from, so the next designer cannot tell whether it is official or a best guess.

The tool reads one pixel at a time, not an average of a region, and it ignores transparency. If you want a representative colour for a whole area, take several samples yourself and choose the typical one. It cannot read from an animated GIF's later frames: the browser paints one frame, usually the first, so export a still first.

After you have the value

Record the hex, RGB and HSL together in the ticket, along with the source file name and the contrast results. Once the colour is settled, you can build a gradient with the Gradient Generator or design a button shadow with the Box Shadow Generator. More tools of this kind sit in the design tools category. You have 10 trial usages a day, so a handful of sampling sessions fit comfortably.

What do you usually have to reverse-engineer from a client, a brand colour, a font or a spacing system? Tell us on the contact page.

Open Color Picker from ImageOpen HEX / RGB / HSL ConverterOpen Color Contrast Checker