Skip to content
PictureToLink logoPictureToLink
Menu

Color picker from image

Drop a photo, logo or screenshot and click any point on it to get that exact color as a HEX code (like #1E90FF), RGB and HSL, ready to copy. This color picker from image also lists the main colors as a palette.

Drop an image to pick colours from

PNG, JPG, WebP, GIF, BMP or AVIF. You can also paste a screenshot (Ctrl+V). Nothing is uploaded.

Runs in your browser; your files are not uploaded or stored. Spotted a wrong result? Tell us.

By Ahsan Khowaja (CEO) · Updated 10 November 2026

On this page

How to pick a color from an image with this color picker

  1. Drop an image on the box, tap Choose image, or paste a screenshot with Ctrl+V (Cmd+V on a Mac).
  2. Click or tap the spot whose color you want. On a computer, the color under the pointer shows as you move, so you can aim before you click.
  3. Copy the code you need. Click the HEX, RGB or HSL button and it's on your clipboard.

You also get the main colors in the image, biggest areas first, so a whole palette from a photo or a brand's logo takes one drop. Your picture is drawn on your own screen and never uploaded.

HEX, RGB and HSL: which color code do you need?

Every format describes the same pixel. One blue is #1E90FF, rgb(30, 144, 255) and hsl(210, 100%, 56%), all at once.

FormatExampleWhere it's used
HEX#1E90FFWebsites (CSS), design apps, brand guidelines, Canva, Figma
RGBrgb(30, 144, 255)CSS, Photoshop and most image editors, Office color dialogs
HSLhsl(210, 100%, 56%)CSS when you want to make a color lighter or darker by changing one number

Pick by where you'll paste it. If the code goes into a website, a design app or a brand document, copy HEX, since that's what those fields expect. If it goes into Photoshop or an Office color dialog, copy RGB. Choose HSL when you plan to make lighter and darker versions of the color.

HEX and RGB are one color written two ways. RGB gives the red, green and blue amounts as numbers from 0 to 255; HEX writes those three numbers in base 16, so 1E is 30, 90 is 144 and FF is 255. The W3C says a hex color "consists of 3, 4, 6, or 8 hexadecimal digits" and that in the six-digit form "The first pair of digits, interpreted as a hexadecimal number, specifies the red component of the color" (W3C CSS Color Module Level 4). Green and blue follow in the next two pairs. Nothing is lost moving between them, because both hold exactly 256 steps per channel, 16,777,216 colors in all. If you only grabbed the RGB and a tool wants HEX later, the hex to RGB converter and the RGB to hex converter do the switch.

An HSL color works differently. It gives a hue (the position on the color wheel, 0–360°), a saturation (how strong it is, 0–100%) and a lightness (from black at 0% to white at 100%). Designers like it for one reason: keep the hue and saturation of a brand color, change only the lightness, and you get matching light and dark shades.

Getting the exact hex code from an image

Click the same blue sky twice, a few pixels apart, and you'll often get two different codes. That's not a bug. A photo is millions of slightly different pixels, because light, texture and camera noise all vary them, and JPG compression adds speckles on top. Fabric, skin and sky show it most. Most JPGs also keep color at a quarter of the resolution (4:2:0), so each 2 × 2 block of pixels shares one color value, and a colored line under 2 px wide rarely keeps its true code.

So for "the" color of an area in a photo, take it from the palette, not from a single click. Each palette color is an average of all the similar pixels around it, which is closer to what your eye sees than any one pixel.

Logos and graphics are the opposite case. Their flat areas are one exact color, so a click in the middle gives the true code. Avoid the edges, though: there the color blends into the background (anti-aliasing) and you'll pick a mix.

Use the original file whenever you can. A screenshot of it, or a heavily compressed JPG, can shift colors slightly, and that error then ends up in your brand guide.

Make a color palette from an image

Under the picture, the "main colors" list groups similar pixels and ranks the groups by how much of the picture they cover. It skips colors that are almost the same as one already listed. A landscape photo usually gives you sky, foliage and ground. A logo or illustration gives you its flat brand colors almost exactly.

Designers use a color palette from an image to build a website or social post that matches a photo, to pull brand colors from a logo when nobody has the guidelines, or to find a paint or fabric shade that goes with a picture. Once you've chosen text and background colors, check that they're readable together with the color contrast checker. Two colors that look good side by side can still fail as text on background.

Sharing a palette on Reddit? Type the HEX codes into the post as text, so people can copy them instead of guessing from a picture. Our guide on how to post images on Reddit covers adding the picture itself.

Other ways to pick colors on your device

An eyedropper tool online is quickest when you already have the image as a file or screenshot. For colors anywhere else on your screen, your computer has its own. Windows users can install Microsoft's free PowerToys, whose Color Picker opens with Win + Shift + C and copies the code of any pixel on screen. On a Mac, the Digital Color Meter app (in Applications › Utilities) shows the RGB values under the pointer. In Chrome and Edge, Developer Tools has a color swatch next to any CSS color, and it opens a picker with an eyedropper that works on the web page.

Questions and answers

Does this color code finder upload my image?

No. Your own browser decodes and draws the image, and the colors are read from that drawing. Nothing is sent to our server and nothing is stored when you close the tab, so it's safe for private photos, unreleased designs and screenshots of documents. Very large images are scaled down to 1,600 pixels on the long side for speed, which doesn't change the colors of flat areas.

Which image formats can I use?

PNG, JPG, WebP, GIF (first frame), BMP and AVIF files work. iPhone HEIC photos need converting first with the HEIC to JPG converter. Transparent pixels in PNG and WebP files are ignored when the palette is built.

Can I pick a color from a screenshot?

Yes. Take the screenshot, come back to this page and paste it with Ctrl+V (Cmd+V on a Mac), then click the color you want. Screenshots of flat graphics give very exact codes, since nothing in them was compressed by a camera.

Is the picked color the same as the real object's color?

Not necessarily. You get the color stored in the image file, and the camera's white balance, the light in the room and any editing filters all change what gets recorded. The code is exact for matching the image on screen. For a printed or painted match, check against the real thing.

All image, photo and design calculators