How to pick a color from an image
Need the exact color of a logo, a photo or a screenshot? Click the pixel and copy its code. A few habits make the result accurate, and a palette view saves time when you want several colors.
Open the image color picker, add your picture, move the pointer to the pixel you want and click. The tool shows HEX, RGB and HSL values you can copy. For an overview, use Main colors to get the dominant 5 to 10 colors with their share.
Do it in your browser
Why matching a color from a picture is harder than it looks
A color is described by numbers, and a picture is a grid of pixels, each of which has numbers. Picking a color is just reading one pixel. The difficulty is that the pixel you click is not always the color you mean. A JPG adds slight noise around edges, a photograph has gradients and shadows, and a screenshot of a logo may be scaled so that its edges are blended with the background. If you click an edge pixel, you get a blend and not the pure brand color.
There are also differences between screens and profiles. The same numbers can look slightly different on different displays, and an image with an embedded color profile may be interpreted in a different color space by your software. For web work this rarely matters, because browsers and design tools assume sRGB. For print, remember that screen colors and printed ink do not match exactly.
Finally, people need different formats. Web designers want HEX, CSS and many apps accept RGB, and hue-based adjustments are easier in HSL. A good picker shows all three, so you do not need a separate converter.
How to pick a color from an image
- Open the image color picker and press Choose image, drop a picture on the page, or paste a screenshot with Ctrl+V (Command+V on a Mac).
- Move the pointer over the image. A magnifier shows the enlarged pixels around it and the color under the pointer, so you can aim at one flat area instead of an edge.
- Click or tap to pick. With a keyboard, the arrow keys move one pixel, Shift with an arrow moves ten, and Enter picks.
- Copy the HEX, RGB or HSL value with its copy button. Earlier picks stay in Your picks, so you can compare several colors side by side.
- Scroll to Main colors for the image's dominant colors, then use Copy all as HEX or Copy as CSS variables to take a ready-made palette into your stylesheet.
How to sample accurately
Pick from the middle of a flat area, away from edges and text, where several neighboring pixels share the same color. Zoom the magnifier on the spot and avoid places with gradients unless you actually want that particular shade. Take two or three samples of the same color; if they differ by a few points, choose the middle one or use Main colors, which summarizes the whole image.
For logos, the best source is a large, clean file such as a PNG or SVG export. A tiny, compressed thumbnail will give you fuzzy colors. If you can, take the brand color from the company's brand guidelines, and use the picker only to check it.
What HEX, RGB and HSL mean
The three formats describe the same color in different ways.
- HEX: a six-digit code such as #1E90FF, for the red, green and blue parts. The standard in CSS and design tools.
- RGB: three numbers from 0 to 255, for example rgb(30, 144, 255). Easy to read and to use in code.
- HSL: hue (0 to 360 degrees), saturation and lightness as percentages. Helpful when you want a lighter, darker or less saturated version by changing one number.
- Closest name: the tool also shows the nearest CSS color name, such as steelblue, as a quick description rather than an exact match.
Picking a color from your screen
If the color is not in a file but on your screen, there are other routes. In Chrome and Edge on a computer, the picker offers Pick from the screen, which opens the browser's eyedropper and samples any pixel you can see. Windows has the PowerToys Color Picker, started with Windows+Shift+C once PowerToys is installed. macOS includes an app called Digital Color Meter in the Utilities folder, which reads values under the pointer.
On phones, take a screenshot and open it in the picker. On an iPhone, Safari works well; tap the point and the magnifier shows what is under your finger.
Building a palette from a photo
The Main colors section lists the dominant colors with their share of the image in percent, from 5 up to 10 swatches. This suits mood boards, website themes and presentation templates based on a photograph. The color palette from image page opens with eight swatches, and the HEX color picker page puts HEX codes first.
Check contrast before you use a palette for text. A pretty pair of colors may be hard to read for people with low vision. Aim for strong contrast between text and background, and test with a contrast checker.
Preparing the image first
If the picture is a photo from an iPhone in HEIC format, convert it to JPG before use. If you only need part of the picture, crop it with the crop tool so that the palette reflects that area. A large image can include a lot of background, which will skew Main colors toward sky or walls. For another look at working with picture files, see how to convert PNG to JPG when a screenshot is the source.
Frequently asked questions
How do I find the HEX code of a color in an image?
Click the color in the image and the HEX value appears next to the swatch, ready to copy.
Can I get the name of a color from a picture?
Yes. The tool shows the closest CSS color name, such as steelblue. It is a good description but not an exact match.
Can I pick a color from my screen instead?
In Chrome and Edge on a computer, use Pick from the screen. Other browsers and phones do not offer it, so take a screenshot and paste it into the tool.
How do I pick a color from an image on iPhone?
Open the page in Safari, choose the photo and tap the spot you want. The magnifier shows what is under your finger.
What is the difference between HEX, RGB and HSL?
They describe the same color differently. HEX is compact, RGB gives red, green and blue from 0 to 255, and HSL gives hue, saturation and lightness.
Can I get a color palette from an image?
Yes. Main colors finds the dominant colors automatically, with each share of the image.
Is my image sent to a server?
No. The picture is opened in your browser and every color is read on your device.
More guides
- How to compress an image to 20 KB A 20 KB limit is tiny: about the size of this page of text. It is common for signature uploads and small passport-style photos, and it is achievable if you control pixel size as well as quality.
- How to compress an image to 50 KB Many application and exam portals cap photos, signatures and ID scans at 50 KB. This guide shows how to hit that number, what pixel size to aim for, and why a file sometimes still gets rejected.
- How to compress a PNG without losing quality PNG files can often be made smaller with no visible change, and sometimes with no change at all. Here is how lossless optimization works, how much it saves, and what to do when it is not enough.
- How to convert AVIF to JPG AVIF is a newer image format that many apps cannot open yet. If your download ended in .avif and nothing will accept it, here is the quickest way to get a JPG and what to expect from the file size.
- How to convert HEIC to JPG on iPhone Your iPhone saves photos as HEIC, and many websites, printers and Windows PCs refuse them. These are the four ways to get JPG files, from fixing one photo to changing the camera for good.
Updated Nov 20, 2026