Color Picker from Image
This image color picker gets the exact color from an image. Upload a photo or screenshot, click the spot you want, and copy its hex, RGB, HSL or CMYK code. It also matches the nearest named color and lists the image’s main colors. Everything runs in your browser, so your image is never uploaded.
Your image stays in your browser. It is never uploaded.
Click or tap the image to pick a color. With the keyboard, use the arrow keys to move (hold Shift for bigger steps) and press Enter to pick.
The screen eyedropper works in Chrome, Edge and Opera. In other browsers, click the image or paste a screenshot.
No color picked yet. Add an image and click it, or try the sample image.
Picked colors
Colors in this image
How to find the color code from an image
- Choose an image, drop one onto the picker, or paste a screenshot with Ctrl+V (⌘V on a Mac).
- Click or tap the exact spot. The hex, RGB, HSL and CMYK codes appear straight away.
- Select Copy next to the format you need.
- Keep picking. Every color is saved in the Picked colors strip, so you can compare them or copy the whole list.
For a precise pick, move the pointer slowly and watch the zoom loupe, which magnifies the pixels around it. You can also click the image once and use the arrow keys to move one pixel at a time.
Hex color picker from image
A hex code is the most common way to write a color on the web. #3B82F6 is the same color as rgb(59, 130, 246): 3B, 82 and F6 are the red, green and blue values written in base 16. The picker shows the hex code first, then RGB, HSL and CMYK, so you can paste whichever format your tool needs. Use hex or RGB for CSS and most design tools, HSL when you want to adjust lightness or saturation, and CMYK as a rough guide for print.
Once you have the code, open it in the color wheel to build matching colors, or in the gradient generator to check contrast and export CSS.
Find the color palette of an image
Below the picture, the tool lists the main colors of the whole image. It groups similar pixels together and averages each group, so a sky with a thousand slightly different blues becomes one blue. Select any swatch to see its codes, copy the whole palette as a list, or turn it into a gradient.
Identify a color
Each color you pick is matched to the closest of the 139 named colors in CSS, such as navy, coral or turquoise. The match is made with a perceptual color difference, which compares colors the way the eye does, not by simply comparing numbers. If the match is exact, the tool says so. Otherwise it tells you how close it is. Open the match to see its shades, tints, matching colors and contrast ratings, or browse all named colors.
Pick a color from anywhere on your screen
In Chrome, Edge and Opera, the Pick from anywhere on screen button uses the browser’s built-in eyedropper. It lets you pick a color from any window, not only from this page. Firefox and Safari do not offer it at the time of writing. In those browsers, take a screenshot, paste it into the picker with Ctrl+V or ⌘V, and pick from that.
Tips for accurate colors
- Photos are noisy. Camera noise and JPEG compression make neighboring pixels differ slightly. Switch the sample from Pixel to 3×3 or 5×5 to average the pixels around the pointer.
- Screenshots are exact. Flat colors in a PNG screenshot return the same value on every pixel, which makes them the most reliable source.
- Color profiles can change the numbers. Browsers normally convert images to sRGB before the picker reads them, so another program that shows the file’s own profile may report slightly different values.
- Transparent areas read as white. The picker draws the image on a white background first.
- Very large images are scaled down. Images wider or taller than 4096 pixels are reduced to fit, and you are told when that happens.
Your image stays private
The picker works entirely inside your browser. Your image is read from your device, drawn onto a canvas on the page, and discarded when you close or reload it. It is not uploaded, saved or shared.
Questions
How do I find the color code from an image?
Choose or drop the image into the picker, or paste a screenshot with Ctrl+V (⌘V on a Mac). Click or tap the spot you want. Its hex, RGB, HSL and CMYK codes appear at once, and you can copy any of them with one click.
What image formats work?
Any format your browser can display: PNG, JPEG, WebP, GIF (the first frame) and SVG. HEIC photos usually need converting to JPEG or PNG first, except in Safari.
Is my image uploaded anywhere?
No. The picker reads the pixels inside your browser, so the image never leaves your device and nothing is stored.
Why is the color different from Photoshop or another tool?
There are three usual reasons. Browsers normally convert images to the sRGB color space before the picker reads them, while an editor may show the numbers from the file’s own color profile. JPEG compression and camera noise make neighboring pixels differ slightly, which is why the 3×3 and 5×5 options average them. And a different tool may average a larger area than a single pixel.
Can I use it on my phone?
Yes. Tap the image to pick a color, or press and drag to move the pointer. The zoom loupe shows the pixels under your finger. The eyedropper button is not available on phones, but pasting or uploading a screenshot works.
What do the CMYK numbers mean?
CMYK (cyan, magenta, yellow and black) is the ink model used in printing. The values here are a simple estimate from the screen color. A real print result depends on the printer, the paper and the color profile.
How does the nearest named color work?
Each picked color is compared with the 139 named colors in CSS using a perceptual color difference, and the closest one is shown. “Exact match” appears only when the hex codes are identical.