By Ahsan Khowaja (CEO) · Updated 10 November 2026
On this page
How to pick a color from an image with this color picker
- Drop an image on the box, tap Choose image, or paste a screenshot with Ctrl+V (Cmd+V on a Mac).
- 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.
- 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.
| Format | Example | Where it's used |
|---|---|---|
| HEX | #1E90FF | Websites (CSS), design apps, brand guidelines, Canva, Figma |
| RGB | rgb(30, 144, 255) | CSS, Photoshop and most image editors, Office color dialogs |
| HSL | hsl(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.
