sqwartHome

Pick a Color From an Image

Click any point of a photo or screenshot to get its exact color code, and see the image's main colors.

  • Free
  • No upload
  • No watermark
  • No sign-up
How it works

How to pick a Color From an Image

  1. 1

    Choose an image or paste a screenshot.

  2. 2

    Move over the picture to preview colors; click to pick one.

  3. 3

    Copy the HEX, RGB or HSL code.

  4. 4

    Click the main colors bar to grab a palette color.

In detail

Color codes explained

  • HEX (#1E90FF): the code web designers, Canva, Figma and most apps accept.
  • RGB (rgb(30, 144, 255)): red, green and blue from 0 to 255, used in CSS, Photoshop and code.
  • HSL (hsl(210, 100%, 56%)): hue, saturation and lightness, handy for making lighter or darker versions of a color.

The main colors

The tool samples about twenty thousand pixels and groups similar colors with k-means clustering, then shows up to eight groups sized by how much of the picture each covers. It's a quick way to build a brand palette from a photo, match a thumbnail's text color to the background, or pick a border that ties a design together.

Picked colors are the exact pixel values of the image as decoded by your browser. Photos with a wide-gamut color profile (common on iPhones) may read slightly differently in other apps that convert colors differently.

Faster than an eyedropper

No extension or design app is needed, it works on phones as well as computers, and the image never leaves your device. Your last twelve picks stay in a row so you can compare and re-copy them.

Typical uses: matching a brand color from a logo someone sent as a JPG, finding the exact background color of a screenshot to extend it, choosing text colors that work on a thumbnail, or checking whether two greens in a design are really the same. The color under the pointer is shown live as you move, so you can home in on the right pixel before clicking.

How it works, and why nothing is uploaded

Your browser already knows how to open JPG, PNG, WEBP, GIF, BMP and SVG files, and recent browsers open AVIF too. This tool asks the browser to decode your picture, draws it on an HTML canvas, and has the browser write the new file. iPhone HEIC photos and TIFF scans, which Chrome and Edge can't open, are decoded by small open-source decoders (libheif compiled to WebAssembly, and UTIF.js) that load only when you add such a file.

Because everything happens on your device there is no upload wait, no queue and no file-size cap other than your device's memory. A browser canvas tops out around 16,000 pixels on a side (less on older iPhones), which is far beyond any phone or camera photo.

FAQ

Questions, answered.

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

Load the image, click the color, then click the HEX code to copy it.

Can I pick a color from a screenshot?

Yes. Take a screenshot and paste it with Ctrl+V or Cmd+V, or choose the file.

How accurate is it?

It reads the exact pixel you click from the decoded image. Zoomed-out large photos are sampled at up to 1600 pixels across, so for a single tiny detail, crop first.

Can I get a whole palette?

Yes. The main colors bar shows up to eight dominant colors; click one to copy its codes.

Does it work on iPhone and Android?

Yes. It works in Safari, Chrome, Edge, Firefox and Samsung Internet on phones, tablets and computers. Very large photos process faster on a computer.

Are my images uploaded anywhere?

No. The page does all the work inside your browser, so your pictures never leave your phone or computer. Once the page has loaded you can even turn off Wi-Fi and it keeps working.

Keep going

More free image tools