To extract colours from an image or logo, choose it and its main colours appear with HEX and RGB codes and each colour's share. Click a swatch to copy it, or click any point on the image to read its exact colour.

Who it's for
- Brand owners: know your logo's exact colours to reuse on your website, posts and prints.
- Designers: pull a harmonious palette from a landscape, painting or reference photo.
- Developers: copy colours straight into CSS variables for a site or app.
- Creators: choose thumbnail text and background colours that match the photo.
How to use it
- Choose the image; it's analysed immediately and the palette appears below.
- Change the number of colours (3–12). Fewer shows the dominant colours; more reveals detail colours.
- Click a swatch to copy its HEX code, or use “Copy as CSS variables”.
- Click anywhere on the image to read that exact colour, like an eyedropper.
- Download the palette as a PNG plus a ready-to-use CSS file.
Real example: the colours of our lab’s facade

We ran the tool on a phone photo of our lab, Photo Labo El Mechouar, with the default 6 colours. It returned the cream of the arch (#E5DCC1, 24%), two greys from the pavement and the air conditioners (#A4AAAE and #8D9499), the warm terracotta of the wall (#CCAA88), a darker brown from the shade (#997B5D) and a near-black from the window and doors (#4E4B47).
That is a ready-made, harmonious palette: the cream works as a background, the terracotta as a main colour, and the near-black for text. It is exactly how you can build a sign, a flyer or a website palette that matches a real place or product.
Find the HEX code of one colour in an image
The palette gives averages of similar colours. When you need the exact colour of one spot, such as a logo detail, a fabric or a paint sample, use the image as a colour picker:
- Open the image in the tool.
- Click the exact point whose colour you want, like an eyedropper.
- Its HEX and RGB codes appear immediately; click to copy them.
Zoom into the image before clicking for small details, and avoid edges, where pixels mix two colours.
Use your palette in Canva, Photoshop or Word
- Canva: select an element, open the colour panel, click + (add a new colour) and paste the HEX code.
- Photoshop: click the foreground colour to open the Color Picker and paste the code in the # field.
- Word and PowerPoint: Font Color or Shape Fill → More Colors → Custom, then type the code in the Hex field.
- Websites: download the CSS file, or use “Copy as CSS variables”.
How colours are calculated
The image is first scaled down for speed, then its colours are split into groups with the median-cut method and refined with several rounds of k-means. Very similar colours are merged and the result is sorted by how much of the image each colour covers. Transparent pixels are ignored, so a transparent PNG logo gives you the logo's colours only.
HEX vs RGB
RGB describes a colour as three numbers from 0 to 255 for red, green and blue. HEX is the same numbers in hexadecimal after a #, like #0079A8. Most design apps, website builders and tools like Canva accept both. For print you'll need CMYK; your printer can convert HEX codes.
Building a brand palette
- Choose one primary colour (the most distinctive in your logo), one secondary accent, and a light and dark neutral for text and backgrounds.
- Use the primary colour sparingly for buttons and headings — overuse weakens it.
- Check that dark text on light backgrounds stays clearly readable.
More in How to pull brand colours from a photo. Once your colours are set, make your site icon with the favicon generator.
FAQ
Why does a colour differ slightly from another app?
Palette colours are averages of similar pixels, not single pixels. For an exact point colour, click it on the image.
Does it work with compressed JPGs?
Yes, but heavy compression adds in-between colours around edges. For logos, a PNG gives the cleanest result.
Can I use a website screenshot?
Yes — paste it directly with Ctrl+V, no need to save a file.
Is the image uploaded?
No, the analysis runs entirely in your browser.
How do I find the HEX code of a colour in a picture?
Open the picture in this tool and click the exact spot: its HEX and RGB codes appear at once and are copied with one click.
Can I extract the colours of a logo?
Yes. A transparent PNG works best, because transparent pixels are ignored and you get only the logo’s colours. Choose 3–5 colours for a simple logo.
How many colours should a palette have?
For a brand or a design, 3 to 5 colours are usually enough: a main colour, an accent and two neutrals. Use more colours here only to study a photo in detail.