Image Color Picker

Open an image, hover over any pixel and click to lock its HEX and RGB values.

Click or Drag an Image Here

Supports JPG, PNG, WebP, GIF

How to pick a color from an image

Drop an image on the box above or click Browse Files. It is drawn on a canvas at its full pixel size; wide images are scaled to fit the frame and tall ones scroll inside it. As you move the pointer, the swatch and the HEX and RGB fields follow the pixel underneath it. Click to lock the reading so you can press Copy without the value changing, and click again to release it. A touch screen has no hover, so tap once to read and lock a color and tap again to let go.

Everything happens in your browser. The file is read with the File API, painted onto an HTML canvas, and each reading comes from getImageData(), which returns the red, green and blue values (0 to 255) of one pixel. No request carries the image to our server; the analytics script in the site header records the page visit, not the picture. The page shows HEX and RGB only. For HSL, or to lighten or darken the value you picked, paste the HEX code into the color converter.

HEX and RGB are the same color written two ways

rgb(255, 87, 51) and #FF5733 describe one color. Each pair of hex digits is one channel's value in base 16: FF is 255, 57 is 87 and 33 is 51. CSS accepts both, as documented on MDN under hex colors and rgb(). HEX is shorter in stylesheets and is what most design tools expect; RGB is easier to adjust by eye when you want one channel a little higher or lower.

What the picker cannot tell you

It reports the pixel as stored, not the color you perceive. JPEG compression smears edges, so sample a flat area a few pixels away from any boundary; anti-aliased text and gradients give in-between values that may not exist in the original design.

Fully transparent pixels read as #000000, because a pixel with no opacity has no color of its own, and the alpha channel is not shown. In an animated GIF only the first frame is drawn.

Readings are sRGB values, the default color space of a 2D canvas and the one CSS expects. A photo saved in a wider gamut such as Display P3 is converted on the way in, so a very saturated color comes back as its nearest sRGB equivalent.

Large photos cost memory: the canvas holds every pixel uncompressed at four bytes each, so a 24-megapixel image needs about 96 MB. If you are picking colors for a site icon, the favicon generator crops and scales the same image into 16, 32 and 192 pixel PNGs; to get a smaller file for the web, run it through the image compressor.

Frequently asked questions

What image formats work?

Any format your browser can decode: JPEG, PNG, GIF, WebP, BMP and SVG everywhere, and AVIF where the browser supports it. The page checks only that the file is an image and leaves decoding to the browser, so if a photo opens in a browser tab it will open here.

What is the difference between HEX and RGB?

None in the color itself. HEX writes the three channels as two base-16 digits each, such as #FF5733; RGB writes them as decimal numbers from 0 to 255, such as rgb(255, 87, 51). CSS accepts both, so use whichever your stylesheet or design tool prefers.

Is my image uploaded to a server?

No. The image is loaded into your browser's memory and drawn on a canvas there, and the colors are read from that canvas. Nothing is sent to our server, and the analytics script in the site header records only that the page was visited.