Free · no sign-up · processed in your browser
Pick a Color From an Image
Drop an image, move the 9x9 magnifier over any spot, and click or tap a pixel to read and copy its HEX, RGB and HSL values. The image is decoded on your device and is not uploaded.
How do I find the HEX or RGB color code of a pixel in an image?
Drop a JPG, PNG, WebP, AVIF or HEIC file into the box above, move your pointer across the picture to aim with the 9x9 pixel zoom loupe, and click or tap the exact pixel. The tool displays a color swatch along with copyable HEX, RGB and HSL strings, plus the alpha percentage when a pixel is partially transparent.
How it works
01
Add your image
Drag one JPG, PNG, WebP, AVIF or HEIC/HEIF file into the box or click to select it. Dropping a new file replaces the current image.
02
Aim with the zoom loupe
Move your cursor or finger across the canvas. A 9x9 pixel magnifier outlines the exact pixel under the pointer and previews its HEX code.
03
Click to lock and copy
Click or tap to select the pixel, then press the copy button next to HEX, RGB or HSL. Your last 8 distinct picks stay in a row below for quick recall.
Pixel magnifier, alpha handling and recent picks
Hovering or dragging over the image opens a 135×135 px loupe showing a 9×9 grid of neighboring pixels at 15× zoom with crisp, unsmoothed edges and a white outline around the center target pixel. Clicking locks that pixel into the readout panel as lowercase `#rrggbb` HEX, `rgb(r, g, b)` and `hsl(h, s%, l%)`, each with its own one-click clipboard button.
If the clicked pixel is semi-transparent (alpha between 1 and 254), an extra row displays its opacity percentage. If you click a fully transparent pixel (alpha 0), the tool tells you that pixel has no color to read instead of recording `#000000`. Up to 8 unique picked colors are kept as clickable chips underneath so you can compare several spots from the same image.
Canvas scaling and sRGB color space
When a photo is larger than 1200 px on its longest side, the picker draws a high-quality scaled copy capped at 1200 px and notes the scaled dimensions on screen. Colors are sampled from that copy, so on a large photo one picked pixel can blend several neighboring pixels of the original.
Because browser 2D canvases decode images into 8-bit sRGB, wide-gamut photos (such as Display P3 images from an iPhone) are converted to standard sRGB before reading. That matches the HEX and RGB values you need for CSS, HTML and standard web graphics.
What this tool does not do
It does not average a multi-pixel brush area, extract a whole color theme automatically (use Color Palette Generator for that), or read wide-gamut values outside standard 8-bit sRGB.
Keep exploring
Related free tools
Questions
Image Color Picker: FAQ
Is my image uploaded when I pick colors?
No. The image is decoded onto a canvas in your browser and stays on your device. The page sends usage events to Google Analytics, such as which tool ran, but never the image.
What happens if I click a transparent background?
If a pixel has 0% opacity (alpha 0), the tool notes that the pixel is fully transparent and has no color to read. If a pixel is partially transparent, it reads the RGB channels and shows the alpha percentage on a fourth line.
Why does the page say my image was scaled to 1200 px?
Images with a long side above 1200 px are drawn onto a canvas capped at 1200 px so the 9×9 magnifier tracks smoothly without lag. All colors are read from that scaled copy.
Can I see the colors I clicked earlier?
Yes. Every distinct color you click is added to a row of up to 8 recent swatch buttons below the readout. Click any chip to load its HEX, RGB and HSL values again.
Does it work with iPhone HEIC photos?
Yes. You can drop .heic and .heif files directly alongside JPG, PNG, WebP and AVIF images.