You have a logo but no brand guidelines, a photo with a colour you love, or a client who says "make it the same blue as our sign". Guessing never gets it exactly right. Knowing how to find the color code from an image lets you match colours precisely across your website, social media graphics and printed materials.
What a colour code is
Digital colours are usually written in two formats:
- HEX code: a # followed by six hexadecimal characters, such as
#1E40AF. Used in web design, CSS and most design tools. - RGB values: three numbers from 0 to 255 for red, green and blue, such as
rgb(30, 64, 175). That is the same colour as #1E40AF.
Read how to convert decimal to hexadecimal to see how the two relate.
Finding the code in three steps
With the free Image Color Picker:
- Upload the image – a logo, screenshot or photo.
- Click the colour you want with the eyedropper. The tool shows the exact HEX code and RGB values.
- Copy the code into your design tool, website or brand document.
The image stays in your browser; nothing is uploaded.
Tips for accurate results
- Use the original file, not a screenshot of a screenshot. Every compression step shifts colours slightly.
- Pick from a flat, solid area of a logo rather than the edges, where colours blend into the background.
- Photos vary pixel to pixel. In a photo of a painted wall, neighbouring pixels can differ. Click a few spots and choose the most representative code, or average them.
- Avoid shadows and highlights on products – they make colours look darker or lighter than reality.
Building a palette from a photo
A favourite photo is a great starting point for a colour scheme:
- Pick a dominant colour, a secondary colour and an accent from the image.
- Note the HEX codes.
- Fine-tune them in the Color Picker, which converts between HEX, RGB and HSL and helps you create lighter and darker shades.
- Check readability – see how to choose website colors for the 60-30-10 rule and contrast guidelines.
Need inspiration instead? The Random Color Generator creates combinations to experiment with.
Screen vs print colours
Screens use RGB light; printers use CMYK ink. A bright on-screen colour can look duller in print. For printed brand materials, ask your printer to match the colour or provide a Pantone reference. Different screens also display colours slightly differently, so use the codes as the source of truth rather than what one monitor shows.
Brand consistency
Once you know your brand colors, write them down in one place – a simple brand sheet with HEX and RGB codes – and use them everywhere:
- Website buttons and headings
- Social media graphics made with Add Text to Image
- Favicon and logo files – see how to create a favicon
- Flyers and signage
Frequently asked questions
Can I get the colour from a website? Take a screenshot and use the picker, or use your browser's developer tools to inspect the element's CSS.
Why is the code slightly different every time I click? Photos contain tiny variations between pixels. Choose a flat area or average a few samples.
What is HSL? Hue, saturation and lightness – a format that makes creating lighter or darker versions of a colour easy.
Summary
Now you know how to find the color code from an image: upload it, click the colour with an eyedropper and copy the HEX or RGB value. Use original files, sample flat areas and record your brand colours so everything matches. Try the free Image Color Picker on your logo today.