Image Color Picker
Choose, drop or paste a picture, then click or tap any point to get its color as HEX, RGB and HSL. A magnifier shows the pixels around the pointer, and the main colors of the whole picture are listed below. The image stays on your device.
, × pixels
Point at the picture, or tap it, to read a color.
Values are in the sRGB color space of the browser. A photo with a wider color profile can therefore read a little differently in an editing program, and JPEG compression changes neighboring pixels, so an average often matches better than one pixel. Your picture is not uploaded.
Related Tools
[6 suggestions]Color Converter and Contrast Checker
Convert a color between HEX, RGB and HSL, look up CSS color names, and check the WCAG contrast ratio of text on a background.
Developer & WebColor Palette Generator: Harmonies, Tints and Shades
Make a color palette from one color: complementary, analogous, triadic, tetradic and split-complementary harmonies, tints and shades, with contrast ratings.
Developer & WebColor Contrast Checker
Check the WCAG contrast ratio of a text and a background color, see AA and AAA results for text and interface parts, and get the nearest colors that pass.
Developer & WebCSS Gradient Generator
Design linear, radial and conic CSS gradients with any number of colour stops, preview them live and copy the CSS.
Developer & WebImage Resizer
Resize an image by width, height or percent, crop it to an exact size, and save it as PNG, JPEG or WebP, all in your browser.
Format ConversionImage Converter
Convert images between PNG, JPEG and WebP, shrink them with a quality setting and a maximum size, and download them one by one or all together.
Format ConversionAbout the Image Color Picker
Every digital picture is a grid of pixels, and each pixel is stored as amounts of red, green and blue from 0 to 255, sometimes with an alpha value for transparency. HEX writes those three amounts as six characters, so rgb(46, 92, 255) becomes #2e5cff. HSL describes the same color by hue, saturation and lightness, which is often easier to adjust. Point at the picture to preview a color and click to keep it; your last picks are listed so you can compare them. The arrow keys move one pixel at a time, or ten with Shift, and Enter picks, which helps with thin lines. Photographs and JPEG files vary from pixel to pixel even where an area looks flat, so choose the 3 by 3 or 5 by 5 average for a steadier value. For logos and screenshots saved as PNG, a single pixel usually gives the exact color, as long as you avoid the smoothed edges. The main colors list groups similar pixels and shows roughly how much of the picture each group covers. It is calculated from a sample of the pixels, so very small details may be missed and shares are approximate. Copy as CSS gives the list as custom properties. Browsers show and report colors in the sRGB color space. A photo taken with a wide color profile can therefore give numbers that differ slightly from those in an editing program. Very large pictures are scaled to 4,096 pixels on the longest side before picking. In browsers that offer the EyeDropper feature, such as desktop Chrome and Edge, an extra button picks a color from anywhere on your screen.
How do I get the HEX code of a color in an image?▾
Open the picture and click the spot you want. The HEX code appears with a Copy button, together with the RGB and HSL values.
Why do neighboring pixels give different codes?▾
Photos contain noise, shading and compression marks. Use the 3 by 3 or 5 by 5 average to get a representative color.
Can I pick a color from another window or website?▾
In browsers with the EyeDropper feature a button lets you pick from anywhere on the screen. In other browsers, take a screenshot and open it here.
How are the main colors chosen?▾
Pixels are sorted into groups of similar color, and the group that varies most is split until there are as many groups as you asked for.
Does it work on a phone?▾
Yes. Choose a photo and tap the picture. The magnifier shows the pixels around your tap so you can try again nearby.
Is my picture uploaded?▾
No. The image is read and measured by your browser, and nothing is sent or stored.