Skip to content
PrivBay

Image color picker for HEX, RGB and HSL codes

Open a photo, screenshot or logo, click a spot with the eyedropper and copy its color code. The image is read on this device, so nothing is uploaded.

Drop an image here

JPG, PNG, WebP or AVIF, up to 50 MB. Pasting from the clipboard works too.

Sample

Ready. Your files stay on this device.

HEX

—
RGB
—
HSL
—

How to pick a color from an image

  1. Drop an image onto the box above, choose it with the button, or paste a screenshot from the clipboard.
  2. Move the pointer over the image. The magnifier shows the pixels under it, and a click picks the color.
  3. To average a small area, choose 3 × 3 average or 5 × 5 average under Sample before you click.
  4. Select Copy HEX, Copy RGB or Copy HSL to copy the color code.

Reading exact color codes from an image

This color picker from image (or colour picker) reads the color from an image at any spot in a JPG, PNG, WebP or AVIF file. Hover over the picture to see an 11 × 11 pixel magnifier with the spot in the middle, and click to get the HEX color from the image or the RGB from the picture. The picked color is shown as HEX (such as #ff8800), RGB (rgb(255, 136, 0)) and HSL (hsl(32, 100%, 50%)), each with its own copy button. The last 10 colors you picked stay in a row below, so you can compare them and copy them again, until you leave the page.

Choosing between HEX, RGB and HSL

  • HEX is the usual choice for websites, design tools and brand guides.
  • RGB gives the red, green and blue amounts from 0 to 255, which many apps and office programs ask for.
  • HSL describes hue, saturation and lightness, which makes it easy to build lighter or darker shades of the same color in CSS.

Below the picked color, the tool shows the 6 colors that cover the most of the image and how much of it each one covers. This is a quick way to build a palette from a photo or to find the background color of a logo.

To keep only part of the image first, use Crop image. To work with a logo in SVG format, turn it into a PNG with SVG to PNG, build a website icon set with PNG to ICO, or cut out a person or object with Remove background.

Paste two sampled HEX values into the contrast checker to measure the text contrast between them.

To express a sampled HEX color as RGB, HSL, HSV or CMYK, open the Color converter.

Frequently asked questions

Is my image uploaded?

No. The image is opened in your browser and its pixels are read on your device. Nothing is sent to a server, and nothing is saved.

Why average 3 × 3 or 5 × 5 pixels?

Photos and compressed images have noise, so neighboring pixels differ slightly. Averaging a small square gives the color you see rather than one odd pixel.

How are the main colors found?

The tool groups similar colors in a small copy of the image and shows the 6 groups that cover the most of it, with their share. Select one to see its codes. Transparent areas are left out.

Can I pick a color from my screen?

Take a screenshot, then paste it here with Ctrl+V or Cmd+V. The tool reads colors from image files and pasted images, not from other windows.

Can I pick colors with the keyboard?

Yes. Select the image, move with the arrow keys and press Enter to pick. Hold Shift to move 10 pixels at a time.

Why does the color differ from the one in my design file?

Saving a picture as JPG changes colors slightly, and some images carry a color profile that the browser converts for the screen. Pick from the original PNG or SVG export for exact brand colors.

Last updated November 10, 2026