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

  1. 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.
  2. 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.
  3. Copy the code as HEX, RGB, HSL or a CSS color name, straight into your design tool or stylesheet.

What the values mean

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.

Questions about color codes from images

How do I get the HEX color code from an image?

Choose the image and click the spot you want. The HEX, RGB and HSL values of that exact pixel appear next to the image with copy buttons. Each pick is added to a history of up to 12 colors so you can compare and copy them later.

How is the color name found?

The tool converts the pixel and each of the 148 CSS named colors to CIELAB and picks the name with the smallest CIE76 color difference (ΔE). The ΔE value is shown, so you can tell an exact match (0) from a rough one. Treat the name as the nearest CSS keyword, not the color's official name.

Why does the color I picked look different from the photo?

A single pixel can differ from the color you see, because photos contain noise, gradients and JPEG compression. Zoom in, pick a few nearby pixels and compare, or use the palette extractor or average color tool for a representative color of an area.

Is my image uploaded?

No. The image is decoded in your browser and every value is read from your device's copy. Nothing is sent to our server.