TTKTheTextKit

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.

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]

About 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.