CyanframeTOOLS · PHOTO LAB · GUIDES

Cyanframe › Tools › Colour palette from image

Extract a colour palette from an image

Choose a photo or logo and instantly get its main colours as HEX and RGB codes. Click any point on the image to read its exact colour.

Drag an image here or click to chooseJPG, PNG, WebP and HEIC · or paste an image with Ctrl+V

Click a swatch to copy its code, or click anywhere on the image to pick a colour.

Last updated: November 22, 2026 · By Rachid Amesrouy

Quick answer

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.

Extract a colour palette from an image — before and after
Real example: the image before and after the tool (made with this very tool).

Who it's for

How to use it

  1. Choose the image; it's analysed immediately and the palette appears below.
  2. Change the number of colours (3–12). Fewer shows the dominant colours; more reveals detail colours.
  3. Click a swatch to copy its HEX code, or use “Copy as CSS variables”.
  4. Click anywhere on the image to read that exact colour, like an eyedropper.
  5. Download the palette as a PNG plus a ready-to-use CSS file.

Real example: the colours of our lab’s facade

Photo of the Photo Labo El Mechouar facade in Tiznit with the 6-colour palette extracted by the tool: #E5DCC1, #A4AAAE, #8D9499, #CCAA88, #997B5D, #4E4B47
Real example: a photo of our lab’s facade in Tiznit and the exact palette the tool returned with 6 colours.

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:

  1. Open the image in the tool.
  2. Click the exact point whose colour you want, like an eyedropper.
  3. 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

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

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.

Other tools you may like

Related guides

Install Cyanframe on your device and use the tools even offline.