Color picker from image

Open a picture and click any spot to get its color as HEX, RGB and HSL, with a magnifier for exact pixels and the picture's main colors as a palette.

Drop an image to pick colors from itChoose an image to pick colors from it

JPG, PNG, WebP, HEIC or a screenshot.

Try one:

How to pick a color from an image

  1. Open a picture in the box above: a photo, a logo or a screenshot.
  2. Move the pointer over the picture and watch the magnifier, or use the arrow keys.
  3. Click the spot you want. On a phone, hold your finger on the picture, slide to aim, and lift to pick.
  4. Select Copy next to the HEX, RGB or HSL code, or copy the picture's main colors.

Open a picture above and click any spot: its color appears as a HEX code, an RGB value and an HSL value, each with its own Copy button. A magnifier follows the pointer and enlarges the pixels around it, so you can land on the exact one you want, and the panel lists the picture's main colors as a ready-made palette. Every pick joins a list of picked colors, so you can collect a set and copy them together.

HEX, RGB and HSL

All three describe the same color, and CSS accepts each of them as written.

Picking the exact pixel

The magnifier shows a small square of the picture around the pointer, enlarged so every pixel is visible, with the pixel that will be read outlined and its HEX code underneath. On a phone, hold your finger on the picture: the magnifier appears above your finger, and the color is picked where you lift it. With a keyboard, move into the picture with Tab, nudge the cursor with the arrow keys (hold Shift for 10 pixels at a time) and press Enter to pick.

Photos rarely have one flat color: neighboring pixels differ a little because of light, sensor noise and JPEG compression. 3 × 3 average and 5 × 5 average read the mean color of the square around the spot, which gives a steadier value for skin, sky, fabric or a painted wall. For a logo or an illustration with flat colors, a single pixel is exact.

The picture's main colors

When a picture opens, its pixels are grouped into up to six main colors, the largest area first, and the panel starts on the biggest one. Select any of them to see its codes, or Copy all to take the list of HEX codes, one per line, for a brand palette or a mood board. Colors that the eye can barely tell apart count as one, so a gradient of the same blue doesn't fill the palette, and clearly different colors come first, so a small accent such as a red stripe on a gray shoe still makes the list.

Named colors

Each pick also gives the closest of the 148 color names defined by CSS, such as dodger blue or tomato, with the keyword to use in CSS. The closeness is measured the way the eye sees color differences, not by the raw numbers. A name is a description, not a match: most picks are only close to one.

When the numbers look off

To use a color as a solid background behind a cutout, the background changer takes a color of your choice. To turn a logo into shapes you can recolor, use PNG to SVG.

Frequently asked questions

How do I find the HEX code of a color in an image?

Open the image above and click the spot with the color. The HEX code appears with the RGB and HSL codes, and Copy puts it on your clipboard.

Why does the color change a little from pixel to pixel?

Photos are made of slightly different neighboring pixels, from light, noise and JPEG compression. Choose 3 × 3 or 5 × 5 average to read the mean color of a small square instead of a single pixel.

What are the main colors?

The picture's pixels grouped into up to six colors, the largest area first. Select one to see its codes, or copy all of them as a list of HEX codes.

Why is the code different in my design app?

The picker reads colors in sRGB, the standard color space of the web, and a picture saved with another color profile, such as Display P3, is converted first. An app that works in that other profile can show slightly different numbers for the same pixel.

What does the color name mean?

It is the closest of the 148 named colors of CSS, the language that styles web pages, so you can describe a color in words or use the name in CSS. An exact match is rare; most picks are only close to a named color.

Are my images uploaded?

No. The picture opens inside your browser tab, so it never leaves your device, and the tool is free with no signup.