Image Colour Picker · Tutorial
How to get the HEX colour code from an image
3 min readbeginnerUpdated
You want to reuse a colour from a picture in your design. This tutorial picks the exact colour, copies its HEX code and builds a palette from the image.
What you need
- The Image Colour Picker
- The image with the colour you want
Steps
Add the image
Drop the image on the page. The sample is a still life with coloured fruit.
Average a few pixels
Set Sample size to 3 × 3 for a steadier colour from a photo.
Pick the colour
Move over the red fruit and click. The HEX, RGB and HSL values appear on the left.
Copy the code
Click the HEX value to copy it, then paste it into your design tool or CSS.
Build a palette
Check Main colours for a ready-made palette of the image, with each colour's share.
Try it yourself
Opens the Image Colour Picker with this tutorial's sample loaded.
Common mistakes
- Picking from a highlight or shadow
- Shading changes the colour. Pick from an evenly lit area.
- Using a compressed screenshot
- JPG screenshots can shift colours slightly. Use the original image if you can.
Next steps
Go back to the Image Colour Picker, or keep going with one of these: