Images & colour
Image Color Picker: Get a HEX Code From a Picture
Use Image Color Picker when you need a quick way to work through this task. Pick any pixel's exact color from an image. This guide walks through a small example and the checks to make before you use the result.
An image color picker reads the exact pixel you click and converts it into codes you can paste into CSS or a design program. It suits matching a logo shade, a product photo or a screenshot when you do not have the original brand file.
How to use the tool
- Select “Choose an image” and open a file no larger than 10 MB.
- Click or tap a flat area of the color, away from edges and shadows.
- Press the HEX, RGB or HSL value to copy it into your stylesheet.
Try a small example
Example input or settings
A solid orange PNG: #E8743B, rgb(232, 116, 59), hsl(20, 79%, 57%)
What to check
Sample two or three nearby points: photos and JPEG compression often give slightly different codes. Pictures wider than 480 pixels are scaled down first, which blends fine details, so the reading may differ from the original pixel. Selection needs a click or tap, and the file stays in your browser.
How do I find the HEX code of a color in a photo?
Load a JPEG, PNG or WebP file, then click the area you want. A solid orange test image returns #E8743B, rgb(232, 116, 59) and hsl(20, 79%, 57%). Click any of the three values to copy it. A fully transparent spot reads as #000000, so check it is not mistaken for black.
When this is useful
For a real task, replace the sample with your own input and check the output in its final context. Keep a copy of the original if the change is hard to reverse.
Before you rely on the result
Preview at the size and on the background where the result will appear. Check file format, legibility and accessibility.