1. All tools
  2. Image color picker

How do I find the exact color code in an image?

Drop an image — a logo, a photo, a screenshot — and click any point to get its exact color as HEX, RGB and HSL, with a magnifier for precise picking. The page also finds the main colors of the whole image and shows how much of it each one covers, ready to copy as a palette or as CSS variables.

Runs entirely in your browser · no upload · no account · no watermark

  1. Drop an image onto the box.
  2. Click any point to pick its color.
  3. Copy the codes, or use the extracted palette.
Drop an image to pick colors fromor click to choose — JPG, PNG, WebP, GIF or BMP

What this page can do

  • Click-to-pick any pixel, with a magnifier
  • HEX, RGB and HSL for every picked color
  • Main color palette with 4, 6, 8 or 12 colors
  • Share of the image covered by each color
  • Copy the palette as CSS variables
  • Works with JPG, PNG, WebP, GIF and BMP

When to use this page

  • Matching a brand color from a logo or screenshot.
  • Building a color palette from a photo for a design.
  • Finding the exact background color of an image to match a web page.

When to use something else

  • You need colors from a live web page — your browser’s developer tools have an eyedropper.
  • You need print colors (Pantone or CMYK) — screen colors cannot be converted exactly.
  • You need to change colors in the image — use an image editor.

How it compares with other options

Photoshop, GIMP, Figma and the developer tools in Chrome and Firefox all have eyedroppers, and operating systems include color meters. This page is quicker when you just need a code from an image file, and it adds a palette extracted with k-means clustering, computed on your device.

Where your files go

Nowhere. This page loads the code that does the work, and from then on the file you open is read by your own browser. There is no upload step, no temporary server copy and no cleanup to trust. You can check it yourself: open your browser’s network panel while the tool runs — the page still loads its own code and any ads, but no request carries your file.

Questions about this tool

Why does the picked color differ slightly from what I expected?

Photos and JPG images are made of slightly different neighbouring pixels, especially near edges and in gradients. Use the magnifier to pick from the middle of an even area. Images with a color profile may also be shown slightly differently by different apps.

How are the main colors chosen?

The page samples up to 20,000 pixels and groups similar colors with k-means clustering. Each swatch is the average color of one group, and the share is how much of the image belongs to it. Fully transparent pixels are ignored.

Can I pick colors from a screenshot of a website?

Yes — take a screenshot, then drop it or save it and open it here. On some screens screenshots are scaled, but the colors stay the same.

How do I convert the color to other formats?

Copy the HEX code into the Color converter to get OKLCH, HWB and CMYK values and to check its contrast with text.

Other tools you may need