How to get the HEX colour code from an image
Quick answer
To get the HEX code of a colour in a picture, drop it into the Colour picker, move over the picture to preview the colour and click to pick it. The HEX, RGB and HSL codes appear, each with a Copy button.
Open Colour picker from an image
Steps
- Open the Colour picker from an image tool and drop in a picture.
- Move over the picture to preview the colour under the pointer.
- Click or tap to pick it, then press Copy next to the code you need.
- Pick as many colours as you like. The last ten stay below so you can go back to them.
HEX, RGB and HSL
They are three ways to write the same colour. HEX is the short code used in web pages, like #1E90FF. RGB gives the red, green and blue amounts from 0 to 255, and HSL gives hue, saturation and lightness, which is easier to adjust by hand.
The panel shows all three, so you can paste whichever your design tool or stylesheet wants.
Getting a reliable colour
A photo is made of millions of slightly different pixels, so two spots that look the same can differ by a few steps. Click a few places, or use the palette tool to find the main colours instead.
Without a mouse, click the picture once, then use the arrow keys to move and Enter to pick. If a pixel is see-through, the page says so, because what you see on screen also depends on what is behind it.
Common questions
How do I find the HEX code of a colour in a picture?
Drop the picture in, click the colour and copy the HEX code that appears.
Why do nearby pixels give different codes?
Photos contain tiny variations. Click a few spots or use the palette tool to see the main colours.
Is my picture uploaded?
No. The colour is read in your browser.
Written by Basic App Company. Last checked against the tool on 12 November 2026. The tool runs in your browser, so your pictures are not uploaded.