Get a color code from an image
Click anywhere on a picture to read the exact HEX, RGB and HSL code of that pixel, plus the nearest CSS color name. Every pick is kept in a short history with copy buttons. Free, instant, and nothing is uploaded.
Your image never leaves this browser. No upload, no account, no watermark.
PNG, JPEG or WebP (AVIF where your browser decodes it) · up to 20 MB and 25 million pixels
How to pick a color from an image
- Choose the image. Pick a PNG, JPEG or WebP up to 20 MB and 25 million pixels. AVIF works where your browser can decode it.
- Click a pixel. The pointer shows the color under it as you move; a click picks it. With a keyboard, focus the image, move the marker with the arrow keys and press Enter.
- Copy the code as HEX, RGB, HSL or a CSS color name, straight into your design tool or stylesheet.
What the values mean
- HEX is the six-digit code used in CSS and most design apps, for example
#663399. - RGB gives the red, green and blue channels from 0 to 255.
- HSL gives hue in degrees and saturation and lightness in percent, rounded to whole numbers.
- Nearest CSS name is the closest of the 148 named colors in CSS by CIE76 ΔE. Some names share one value, such as gray and grey or aqua and cyan; both are listed.
Values are read from the image as your browser decodes it. For a semi-transparent pixel, the alpha is shown separately and the RGB values are the pixel's own color before it is blended with anything behind it. Files with an embedded color profile can decode very slightly differently between browsers.
Prefer typing exact coordinates? Use the image color picker. For the main colors of a whole picture, use the image color palette extractor or the average image color tool. To change a color you found, use the image color changer. See all free image tools.