Skip to content
CrayonPix

Image Color Picker

Pick the exact color of any pixel in a photo, screenshot or logo. A magnifier shows the pixels under your cursor, and every color you pick is kept in a history.

Loading the tool…

Your images are processed on your device and never uploaded.

How to use Image Color Picker

  1. 1

    Choose, drop or paste an image (JPG, PNG, WebP, AVIF, HEIC, SVG and more).

  2. 2

    Click or tap the spot you want — drag to fine-tune with the zoom loupe, or use the arrow keys.

  3. 3

    Copy the HEX, RGB or HSL value with one click, or pick more colors to build a history.

Pick a color from any image

Designers, developers and crafters all hit the same problem: you have a photo, a logo or a screenshot, and you need the exact color code of one spot in it. This image color picker answers that in one click. Open the image, click the point you want, and the panel shows the color as HEX, RGB and HSL, each with its own Copy button.

When the image opens, the pixel in the very center is picked automatically, so you can see how the readout works straight away. A small ring marks the point you picked on the image.

The zoom loupe and fine-tuning

Small details are hard to hit with a mouse, and impossible with a finger. While you hover over the image (or drag on a touch screen), a round magnifier shows an 11 × 11 pixel area around the pointer, enlarged so each pixel is a visible square. The square in the middle is the one you will pick.

  • Mouse: move over the image to look, click to pick. Hold the button and drag to preview colors as you go.
  • Touch: press and drag; the loupe floats above your finger. Lift to pick.
  • Keyboard: click the image once (or tab to it), then use the arrow keys to move one pixel at a time — hold Shift to move ten pixels — and press Enter to add the color to the history.

Single pixel or average

The Sample size setting decides how many pixels are read:

Setting What you get Best for
Single pixel The exact value of one pixel Logos, flat graphics, screenshots
3 × 3 average Mean of the 9 pixels around the point Most photos
5 × 5 average Mean of 25 pixels Grainy or heavily compressed JPGs

Averaging removes the noise you find in photos, so the result matches what your eye sees rather than one random speck.

Color history

Every color you pick is added to a row of swatches (the 16 most recent, newest first). Click a swatch to show its values again — its HEX code is copied at the same time. With two or more colors, “Copy all HEX codes” copies the whole list, one code per line, ready to paste into a design file or a CSS stylesheet.

If you want the main colors of a photo without clicking around, the Color Palette from Image tool finds them automatically. To swap a color you have picked for another one, use Change Image Color.

Formats and privacy

The picker reads any image your browser can open — JPG, PNG, WebP, AVIF, GIF (first frame), BMP and SVG — plus iPhone HEIC photos, which are decoded with a WebAssembly module when the browser cannot read them itself. Transparent pixels are averaged by their opacity, so a half-transparent edge does not pull the result toward black.

Everything runs on your device: the image is read into a canvas in the page and never uploaded, and the page keeps working offline once it has loaded. If you need a negative of the colors instead, try Invert Image Colors.

Frequently asked questions

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

Open the image here and click the color you want. The HEX code (for example

Can I pick a color from a screenshot?

Yes. Take the screenshot, then paste it straight into the page with Ctrl+V (Cmd+V on a Mac) — no need to save it as a file first. Screenshots are usually saved as PNG, which is lossless, so no compression shifts the colors you pick.

Why is the color slightly different from what I expected?

Photos are made of noisy pixels, and JPG compression shifts colors a little, so two neighboring pixels can differ. Set "Sample size" to 3 × 3 or 5 × 5 to get the average of the pixels around the point you click instead of a single pixel.

Does it work on a phone?

Yes. Tap the image and keep your finger down to move; the loupe appears above your finger so you can see the pixel you are on. The color is added to the history when you lift your finger.

What is the difference between HEX, RGB and HSL?

They describe the same color in three ways. HEX is the six-digit code used in HTML, CSS and most design apps. RGB lists the red, green and blue amounts from 0 to 255. HSL gives the hue as an angle, then saturation and lightness as percentages, which is easier to adjust by hand.

Is my image uploaded?

No. The image is decoded by your browser and the colors are read from its pixels on your device. Nothing is sent to a server.