Skip to content
utilhex

Color Picker from Image

Runs in your browserFree · No sign-up

Pick colours from any image with a magnifier, get HEX, RGB, HSL, and OKLCH codes, extract a palette, and check WCAG contrast between two colours.

About Color Picker from Image

Color Picker reads colours straight from an image: hover to see a magnified loupe and the exact pixel colour, click to keep it, and copy it as HEX, RGB, HSL, or OKLCH. It also extracts the image's main colours as a palette with each one's share of the picture, exports them as CSS variables, and includes a WCAG contrast checker so you can test any two colours as text and background. In Chrome and Edge, Pick from screen grabs a colour from anywhere on your display.

How to use Color Picker from Image

  1. Open an image (or use Pick from screen where available).
  2. Hover to aim with the loupe and click to pick.
  3. Copy the code in the format you need, or the whole palette as CSS.
  4. Use the contrast checker to test text and background colours.

Examples

Match a brand colour

Open the logo, click its main colour, and copy the HEX code into your design tool.

Accessible text

Send the picked colour to the contrast checker as the background and see whether white or dark text passes AA.

WCAG contrast requirements

LevelNormal textLarge text (24 px, or 18.5 px bold)
AA4.5 : 13 : 1
AAA7 : 14.5 : 1

Limitations

  • Colours are read as stored in the image (sRGB). Screens and printers may show them slightly differently.
  • JPG compression can shift individual pixels; pick from flat areas, or use the palette for an average.

Privacy

This tool processes everything locally in your browser tab. Your input is not uploaded to Utilhex or any third party, and it is discarded when you close or reload the page. Read the privacy policy for details.

Frequently asked questions

What is OKLCH?

A perceptual colour format supported in modern CSS. Its lightness matches how bright a colour looks, which makes it easier to build consistent palettes than HSL.

How is the palette chosen?

The image is sampled and grouped into clusters of similar colours (k-means). Each swatch is a cluster's average colour, sized by how much of the image it covers.

Are my images uploaded?

No. Images are opened and processed in your browser on your own device. Nothing is uploaded, and the tool keeps working offline once the page has loaded.