Skip to content
hexcolorcodepicker.com

Color Picker from Image

Drop an image here, or click to upload

PNG, JPG, WebP, GIF, BMP, TIFF, or SVG. You can also paste a screenshot with Ctrl+V or Cmd+V. Nothing is ever uploaded.

Choose an image

Add an image first — upload, drop, or paste one.

Upload a photo and click any pixel to get its HEX code instantly. Free image color picker with loupe, zoom, and pick history — nothing is ever uploaded.

What is a color picker from image?

A color picker from image reads the exact HEX code of any pixel in a photo or screenshot. Upload a picture, click the spot you want, and the tool tells you the color of that single pixel as a HEX code you can paste into CSS, Figma, or Canva. It answers one question — what color is this spot — and nothing else.

That single-pixel answer is what makes it different from a palette tool. A palette tool guesses the main colors of a whole picture, but this tool tells you the precise color at the exact point you clicked. If you need a brand color from a logo or a shade from a photo, the pixel is the truth.

#6C63FF

rgb(108, 99, 255) — the pixel under the loupe

How to get a HEX code from an image in 4 steps

Add the image, zoom with the loupe, click the pixel, then copy the code. First, upload, drag in, or paste the image. Second, move the loupe over the area you want and zoom in until single pixels are visible. Third, click the exact pixel. Fourth, copy the HEX code and paste it where you need it.

The loupe step is the one people skip, and it is the one that matters most. At normal size, a pixel you think is solid blue may be a blend of several shades, especially on a photo edge or an anti-aliased logo. Zooming in first means the pixel you click is the pixel you meant.

  1. 1Drop the image — upload, drag in, or paste it.
  2. 2Zoom the loupe onto a logo edge until single pixels show.
  3. 3Click one pixel — the readout shows its HEX code.
  4. 4Copy the HEX code — paste it into CSS, Figma, or Canva.

Readout at step 3: #6C63FF · rgb(108, 99, 255)

Worked example: one pixel, one HEX code

A pixel with RGB values 108, 99, 255 has the HEX code #6C63FF. Each RGB value converts to two hex digits: 108 becomes 6C, 99 becomes 63, and 255 becomes FF, and the three pairs join after the hash to make #6C63FF. That is a vivid violet-blue, the kind of color used for buttons and links.

You can check the conversion by hand. Hex is base 16, so 108 divided by 16 is 6 with a remainder of 12, and 12 in hex is C, giving 6C. The same divide-by-16 step gives 63 for 99 and FF for 255. The tool does this instantly, but the hand check shows the code is not magic.

RED

108 → 6C

GREEN

99 → 63

BLUE

255 → FF

Joined code: #6C63FF

Supported image formats and which to use

PNG, JPG, WebP, GIF, BMP, and TIFF all work, and PNG is the best choice for exact colors. PNG stores every pixel exactly, so the code you pick is the code in the file. JPG compresses the image, which can shift a pixel by a digit or two near edges and gradients. WebP is usually exact enough for picking, and GIF works but only holds 256 colors.

Screenshots are usually PNG, which is good news for picking a color from a website or an app. If a screenshot is a JPG, pick from the middle of a flat area rather than from an edge, where compression artifacts are strongest. A photo of a printed page is the least exact source, because the camera, the light, and the print all shift the color.

#6C63FF

Sample swatch picked from PNG

Exact — PNG stores every pixel without loss. Best choice for picking.

Your image never leaves your browser

Nothing you upload is sent anywhere — the image is read in your browser and never leaves your device. The tool draws the image onto a canvas in the page, reads the pixel under your click from that canvas, and shows you the code. There is no upload, no server copy, and no storage, so a private screenshot or a client logo stays private.

This matters most for work images. A brand logo, an unreleased design, or a screenshot with personal data in it can be picked safely, because the file is never transmitted. Closing the page discards the image completely, and clearing the history removes the picked codes too.

Your image file
Browser canvas
#6C63FF

No arrow to any server — nothing uploaded.

Pick history: your last 16 colors

Every color you pick is saved in a history strip of the last 16 HEX codes, so you can compare and re-copy them. Click a pixel, and its code joins the strip as a swatch with the HEX code underneath. Click any swatch in the strip to copy that code again, without re-finding the pixel in the image.

The history is most useful when you are sampling a gradient or a photo with several shades. Pick the light edge, the middle, and the dark edge, and the strip shows the three codes side by side, so you can see how the color changes across the image. Clearing the history starts a fresh set for a new image.

Sample history strip — tap any swatch to copy it

The strip keeps your last 16 picks, in pick order, with a Clear button at the end.

Using picked HEX codes in CSS and design tools

Paste the picked HEX code straight into CSS, Figma, Canva, or a Tailwind theme — it is the same code everywhere. In CSS, use it as a color value, for example color: #6C63FF;, or store it as a custom property such as --brand: #6C63FF; and reuse it across the site. In Figma or Canva, paste the code into the color field and the swatch matches.

Name colors by their role, not by their value, when you store them. A variable called --brand survives a rebrand, while one called --purple-6C63FF does not. The HEX code is the value; the name should say what the color is for.

#6C63FF

CSS

color: #6C63FF;

Figma color field

#6C63FF

Canva color field

#6C63FF

Check contrast before using a HEX color for text

A color that looks good as a swatch can be unreadable as text, so check its contrast before you use it. Text needs a contrast ratio of at least 4.5:1 against its background for normal text under WCAG 2.2, and 3:1 for large text. A vivid color like #6C63FF on white passes for large text but is weaker for small body text, so test the real pair.

The fastest check is to put the picked color on the actual background it will sit on, at the actual size it will be used. A code picked from an image is only the start — the contrast check decides whether it works as text, as a button, or only as a decoration.

Sample text in #6C63FF on white

Large text in #6C63FF on white

Contrast on white: 4.32:1 — AA normal: fail · AA large: pass

Sample text in #6C63FF on black

Large text in #6C63FF on black

Contrast on black: 4.87:1 — AA normal: pass · AA large: pass

All color tools

21 tools, one topic — see About Hex Color Code Picker for who built this site.

Frequently asked questions

Upload, drag in, or paste the image, zoom with the loupe, click the pixel, and copy the code. The tool shows the HEX code of the exact pixel you clicked, plus its RGB values and a swatch. The image is processed in your browser only and is never uploaded.