Pick the Exact Colour from a Photo
Click anywhere on an image to see and copy the HEX, RGB and HSL values of that pixel.
Use this tool in your browser without installing software.
About this tool
When you spot a colour in a photo or screenshot and want to use it in a design, guessing the code is hard. This tool opens the image in your browser and reads the exact pixel under a click or drag. HEX for CSS, RGB for code and HSL for lightness and saturation sit side by side, each with a copy button. Recent colours are kept so you can move between a few spots. If the pixel is transparent, its alpha is shown too. The image is never uploaded and all the work happens in your browser.
How to use it
- 1
Choose an image; PNG, JPG, WebP and GIF up to 10 MB are accepted.
- 2
Click the spot you want or drag the pointer so that pixel is picked.
- 3
Copy the HEX, RGB or HSL value into your design.
If the file will not open
- The colour is not picked.
Choose an image first, then click the image itself. If it has not opened yet, the line under the box says why.
- The code will not copy.
A browser may block clipboard access on insecure pages or inside an iframe. Select and copy the value by hand; the values always stay on screen.
- The colour differs from the original.
For very large images, sampling runs on a scaled copy and a pixel may shift. Try a nearby spot.
Frequently asked questions
Why does the pixel colour differ from the overall photo?
Every pixel has its own colour, and real photos hold thousands of close shades. Pick the exact spot you want in the design, and try a few nearby pixels for shadows.
What is the difference between HEX and RGB?
Both describe the same colour; HEX is common in CSS and web design, while RGB is used in code and some software. HSL describes the same colour by lightness and saturation, which makes lighter or darker shades easier to build.
What does pixel transparency mean?
If a PNG or WebP has transparency, some pixels have alpha below 100 percent. The tool shows the alpha percentage, but the HEX value is the colour without alpha; use RGBA when you need transparency in code.
Can I use a screenshot?
Yes, any PNG, JPG, WebP or GIF file is accepted. Screenshots usually have flat colours, which makes picking more precise.
Why is a very large image sampled at a smaller size?
To keep the browser from using a lot of memory, very large images are scaled down for sampling. The original size is shown at the top, and the colours of large areas do not change.