๐Ÿ–ผ๏ธ Image ยท Updated October 19, 2026 ยท 7 min read

Pick a Color From an Image: Exact HEX and RGB Values

Any pixel #E11D48 ๐ŸŽฏ

To pick a color from an image, load it into a color picker, hover over the spot you want (or tap on a phone), and read the HEX and RGB values of that exact pixel; clicking copies the HEX code. The catch is that one pixel is not always the color you think it is: JPG compression, soft edges and resizing blend neighboring colors. This guide shows where to sample so the code you copy matches the color people actually see, and what to do with it next.

๐ŸŽจ Try Color Palette & Picker now โ€” freeOpen โ†’
Color Palette and Picker with the crimson door photo, the exact pick #C3273D and the extracted six-color palette
One exact pixel value plus the image's overall palette, all in the browser.
๐Ÿ’ก Why an exact color matters

Matching a brand color from a logo, a paint shade from a product photo or a button color from a screenshot all need one precise value, not an average. A slightly wrong value, say #E21E4A instead of #E11D48, shows up when two versions sit side by side on a site or in print.

Eyedropper vs extracted palette: which one you need

GrabCast's Color Palette and Picker does both jobs on the same image, in your browser, without uploading it.

If a palette swatch looks close but not right, switch to the picker and sample the object itself.

Why JPG compression and soft edges shift the color you pick

Three things make one pixel differ from its neighbors, even on a flat logo.

Pick a color from an image accurately: where to sample

A few habits get you the value that matches what people see.

The picker has no magnifier, which is why cropping is the practical way to zoom in.

Copy the code and convert it to other formats

Hovering updates the swatch live; clicking the image locks the color and copies its HEX code. On a phone, tap the spot and use Copy HEX. The RGB value is shown underneath as rgb(r, g, b) for you to select and copy.

Using the picked color in design and code

Once you have the HEX code, paste it into your stylesheet, design tool or brand document. Keep a note of where the color came from, and check that text using it has enough contrast against its background, since a color that looks good in a logo may not work for small copy.

To convert between formats, converting HEX to RGB and HSL explains the math, and converting RGB to HEX covers the reverse. For a whole image, extracting a color palette from an image finds the dominant colors automatically.

Common mistakes when sampling colors

Avoid picking from photographs of printed items, because lighting changes the result. Do not sample near edges, gradients or shadows, and remember that a screenshot may be color-managed differently from the original file. When accuracy matters, ask for the brand guidelines from the owner of the logo.

Using the picked shade in design and code

Once you have the HEX code, paste it into your stylesheet, design tool or brand document. Keep a note of where the value came from, and check that text using it has enough contrast against its background, since a hue that looks good in a logo may not work for small copy.

To convert between formats, converting HEX to RGB and HSL explains the math, and converting RGB to HEX covers the reverse. For a whole picture, extracting a palette finds the dominant tones automatically.

Common mistakes when sampling

Avoid sampling a photograph of a printed item, because lighting changes the result. Do not sample near edges, gradients or shadows, and remember that a screenshot may be managed differently by your display than the original file. When accuracy matters, ask for the brand guidelines of the logo's owner.

Step-by-step

1234
1Open the Color Palette and Picker and drop the original image.
Illustrated crimson front door with cream walls, two windows and potted plants loaded into the color picker canvas
Drop the original image into the Color Palette and Picker.
2Hover over a flat area of the color, away from edges, and watch the readout.
Pointer ring on the flat middle of the red door panel, with the readout showing #C3273D and rgb(195, 39, 61)
Hover over a flat area away from edges and watch the readout settle.
3When the value stays steady, click to copy the HEX, or tap and press Copy HEX on a phone.
Picked color #C3273D with its rgb(195, 39, 61) value, the Copy HEX button and a six-swatch palette extracted from the door image
Click Copy HEX when the value stays steady; the palette below is an average, not an exact pick.
4Paste it into your design app, or into the Color Converter for HSL.

Common mistakes to avoid

โš ๏ธSampling the edge of text or a logo, which returns a blend.
โš ๏ธPicking from a heavily compressed screenshot and treating the result as the official brand color.
โš ๏ธUsing an averaged palette swatch where an exact value is required.
โš ๏ธAssuming a screen HEX will print identically without a proof.

Pro tips

โœ“Sample three spots in the same area; if two agree, use that value.
โœ“Note where you sampled each HEX for later reference.
โœ“For brand colors, check the company's published brand guide first, then use the picker only to confirm.
โœ“Crop small details before picking so they are displayed large and read without resizing.
โœ“Use the palette to find neutrals that suit your picked accent.

Frequently asked questions

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

Load the image into the picker and hover over the color, or tap on a phone. The HEX and RGB values update live; click the image to copy the HEX code.

Why do I get slightly different colors in the same area?

Compression, noise and lighting vary pixel by pixel. Sample a flat area and use the value that repeats.

Is my image uploaded?

No. The image is drawn onto a canvas in your browser and both the picker and the palette read pixels locally.

Can I pick a color from a screenshot?

Yes. PNG screenshots are ideal because they are not lossy. Avoid edges and text.

How do I convert the picked color to HSL?

Copy the HEX and paste it into the Color Converter, which shows HEX, RGB and HSL. The picker itself reports HEX and RGB.

๐Ÿ“Œ Bottom line

One pixel gives you an exact code, but only if you pick the right pixel. Sample the center of flat areas, confirm the value repeats, crop small details first, and use the original file where you can. The picker gives you HEX and RGB instantly without uploading anything; the Color Converter handles the rest.

Open Color Palette & Picker โ†’

Related guides

Browse more: all image guides ยท Color Palette & Picker