Color Picker From Image
Choose an image, then click or tap anywhere on it. The tool reads the pixel under your pointer and shows its hex, RGB, HSL and CMYK values. The image stays on your device and is never uploaded.
#1E90FFexactly dodgerblue
or drop an image here, or paste one with Ctrl+V or Cmd+V.
Move over the image to preview a color, click or tap to pick it.
This is the CSS color dodgerblue #1E90FF
Use 3 or 6 digits, for example #1E90FF or 19F
For example rgb(30, 144, 255) or 30 144 255
For example hsl(210, 100%, 56%)
For example cmyk(88%, 44%, 0%, 0%)
Recent colors
Colors you pick appear here. They stay on this device.
By the Hex Color Picker Team. Updated
How to get a hex code from an image
- Choose an image with the button, drag one onto the box, or paste one from your clipboard (Ctrl+V or Cmd+V).
- Move your pointer over the image to preview the color under it, then click or tap to pick it.
- Copy the hex code, or any other format. Each pick is added to the recent colors list.
- To compare several colors from the same image, keep picking: the last twelve are kept below.
Pick from anywhere on your screen
On Chrome, Edge and other Chromium-based desktop browsers, the Eyedropper button lets you sample any pixel on your screen, including other windows and websites, without saving a screenshot first. Firefox and Safari don't offer that browser feature yet, so uploading or pasting a screenshot is the way to go there, and it works the same everywhere.
What to expect from the colors you get
The tool reads the exact pixel value in the decoded image, so the hex code matches what your image viewer would report for that pixel. Two things can make it differ from the color you expected. JPEG compression adds small variations around edges and gradients, so a flat-looking area can contain slightly different pixels. And a photo can carry a color profile other than sRGB, which browsers convert when displaying it.
For a logo or a flat design, click in the middle of a solid area rather than near an edge. For a photo, pick a few nearby points and compare, since a single pixel can be noise.
Supported images and privacy
Any image format your browser can display works, including JPG, PNG, WebP, GIF and SVG. HEIC files from iPhones aren't supported by most browsers directly, so export them as JPG first. The image is drawn into a canvas element on your device and nothing is sent anywhere, so it's safe to use with unreleased designs and private photos.
Common questions
How do I find the hex code of a color in a picture?
Upload or paste the picture, then click the color. The hex code appears beside the image and copies with one click.
Is my image uploaded to a server?
No. The image is read and drawn locally in your browser, and no copy is sent anywhere.
Why isn't the Eyedropper button showing?
The browser EyeDropper feature is available in Chromium-based desktop browsers such as Chrome and Edge. In other browsers, use the image upload box instead.