Free tool

Image color picker

A client sends their logo as a JPG and asks for posts "in our colors". Tap any spot of the picture to get its HEX, RGB and HSL code, plus the main colors of the whole picture. Free, nothing is uploaded.

or paste a picture you copied

Runs in your browser. Your pictures never leave your device.

If your browser cannot open HEIC photos, this page reads them with two free libraries, libheif and libde265. Both are under the GNU LGPL, version 3. See the license and the source code.

A new client wants posts "in our colors". All they send is a logo as a JPG and a photo of their shop sign. Drop the picture in, tap the color, and copy the code into Canva or Figma.

How to use the image color picker

  1. Drop a picture on the box, tap Choose a picture, or paste a screenshot you copied. No picture at hand? Tap Try a sample picture.
  2. Tap a spot. On a phone, hold your finger down and slide: a close-up shows the pixels under it, and the color is picked when you let go. With a mouse, the close-up follows the pointer.
  3. Copy the HEX, RGB or HSL code. More color codes has HSB, CMYK, OKLCH and the closest color name.
  4. Photo looks grainy? Under Read, pick 3 x 3 average or 5 x 5 average to get the color of a small patch, not one odd pixel.
  5. Look at Main colors for the colors that cover the most of the picture. Pick how many: 4, 6, 8 or 10.
  6. Open Copy or save all colors to copy your picks and the main colors as a HEX list, CSS, Tailwind or JSON. Copy link gives a teammate the same colors.

With a keyboard, press Tab until the picture has a ring around it, move the spot with the arrow keys (Shift moves 10 pixels) and press Enter to pick and copy the code.

One pixel or the whole picture

They answer two questions. A pick tells you the color of one spot: the red of a logo, the blue of a shop sign. The main colors tell you what the picture is made of: the sand, sea and sky of a beach photo. For a brand color, pick it. For a mood board or a post that matches a photo, use the main colors.

Where a wrong color comes from

A photo has noise. Zoom in on a "white" wall and you see pixels of cream, gray and pink. Saving a JPG adds more: it smears colors into small blocks, most of all at sharp edges like the letters of a logo. Shadows and light change a color too. The same red shirt is a different red in the sun and in the shade.

Why it shows

You pick the red of the logo, but you hit one odd pixel near the edge. The code looks fine on its own. Then the post goes up with a red banner next to the real logo, and the two reds do not match. The client sees it at once, because they see their logo every day.

The 3 x 3 and 5 x 5 choices take the average of 9 or 25 pixels, which is closer to what your eye sees. Pick from the middle of a color, away from edges and shadows.

What the tool does and does not do

It reads the picture in your browser and sends nothing out. Each pick reads the picture at its own size, so the code is the file's real pixel. Codes are in sRGB, the color space of the web and of most apps. A huge picture is read at the largest size your browser can hold, and the page says so.

The main colors come from median cut. The tool takes a small copy of the picture, at most 40,000 pixels, and sorts its pixels into boxes. It keeps cutting the box with the widest spread of color in half, then takes the average of each box. Colors that look nearly the same are joined, and each one shows how much of the picture it covers. Specks that cover less than half a percent are left out, such as the soft edge between two colors of a logo. A flat logo has few colors, so you may get fewer than you asked for.

For see-through pixels in a PNG, the code is the color with no see-through part, and a note says how see-through the spot is. A fully see-through spot has no color you can see, and the page says so.

The tool opens JPG, PNG, WebP, GIF (the first frame), SVG and iPhone HEIC photos. A screen color is not a print color: for print, ask your printer for the CMYK or Pantone values. The CMYK code here is a simple math conversion, not a printer's profile.

What this means on social media

  • Instagram: the Story editor has its own eyedropper, but it only picks from the Story you are making. For a color from another photo or a client's logo, pick it here and type the HEX code in Canva or Figma.
  • Instagram, Facebook and X: each saves a smaller copy of your picture when you post it. A color picked from a screenshot of a post can be a few steps off. Pick from the original file when you have it.
  • TikTok and YouTube: covers and thumbnails get a glance. Check the Text on this color line: 4.5:1 is the WCAG line for normal text, and 3:1 for large text.
  • LinkedIn and Pinterest: carousels and pins often come from a template. Copy the HEX list and paste the colors into your brand kit, so every slide matches.

FAQ

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

Drop the picture on this page and tap the color. The HEX code shows right away, with a button to copy it. Use the 3 x 3 average for photos, so one odd pixel does not throw the code off.

Is my picture uploaded?

No. The picture is opened and read in your browser on your device, and nothing is sent anywhere. Close the tab and it is gone. A link you copy holds only the color codes.

Can I pick a color from a screenshot?

Yes. Take the screenshot, then paste it on this page with Ctrl+V or Cmd+V. You do not need to save it as a file first.

Why does the color look different in my design app?

Usually the app shows it in another color space, or the picture was saved smaller with some color loss. The code here is the sRGB value of the pixel in your file. Paste the HEX code into the app instead of picking again by eye.

Why did I get fewer main colors than I asked for?

Your picture has fewer colors that look different. A flat logo with three colors gives three, because near copies of a color are joined into one.

Does it work on a phone?

Yes. Hold your finger on the picture and slide: the close-up shows the pixels under your finger, and the color is picked when you let go. iPhone HEIC photos open too.

More free tools

All 101 tools

Keep your brand colors in every post

In Postfjord's design editor, add your brand colors once under Settings, Brand kit, and every template can use them. Try it free.

Start free