Free image tools

Generate a colour palette from an image in your browser

Extract between five and ten dominant colours from a photo, copy their HEX codes and download the palette as a PNG.

This tool needs JavaScript. It runs entirely in your browser; nothing is uploaded.

Private by design. Your files are processed by your own browser on your own device. They are not uploaded, stored or seen by Archive.London. Tool terms

How to use the Colour Palette from Image tool

  1. Choose an image or drop it onto the page.
  2. Choose how many colours to extract, from 5 to 10.
  3. Copy the HEX code of any colour you want to use.
  4. Download the palette as a PNG.

To generate a colour palette from an image, open the Colour Palette from Image tool on Archive.London and choose or drop your picture. Choose how many colours you want, from 5 to 10, then copy the HEX codes or download the palette as a PNG. The image is analysed in your browser and nothing is uploaded.

Dominant colours are not always the ones you notice

A photograph contains thousands of slightly different colours. To reduce them to a handful, the tool groups similar pixels together and reports a representative colour for each of the largest groups. Dominant therefore means covering the most area, not catching the eye.

That has a practical consequence. A small red coat in a wide grey street will often be missing from a five-colour palette, because greys fill the frame. Ask for more colours, up to ten, to give minor colours a chance, or crop the picture to the part you care about before extracting. If one accent still does not appear, sample it directly with the colour picker.

Expect muted results from most photographs. Averaging a group pulls its colour towards the middle, so palette colours are usually less saturated than the brightest pixels in the image.

Using the HEX codes and the palette PNG

Each colour is given as a HEX code, a six-digit base 16 number that states its red, green and blue components. Paste it into CSS, a design application or a presentation tool and you get the same sRGB colour. The palette PNG is a picture of the swatches, handy for mood boards, briefs and handing to someone who does not need the codes.

A palette taken from a photograph is a starting point for design, not a finished scheme. Check text contrast separately, since two colours that look good together may be too close in lightness for readable type. For print, ask the printer to convert; HEX values are screen colours.

The analysis is done locally by your browser. The photo is not uploaded or kept, and no account is required.

Palette as a way of reading a body of work

Picture editors have always sorted photographs by colour as well as by subject, pulling together a spread or a wall from frames that share a range of tones. Extracting palettes puts numbers on that instinct. Run it over a set of images and patterns appear: the warm neutrals of a studio still life, the cool blues of a marine picture, the particular greens of a landscape.

It can be a useful exercise when researching a large collection. The Robert Harper Photograph Library is catalogued in 330 described collections across 24 principal categories, listed in the archive facts, ranging from fashion and jewellery to places and travel. Bear in mind that a palette describes a particular scan or file. Film dyes shift with age and scanners differ, so it is not a measurement of the original.

Frequently asked questions

How does a palette generator choose the colours?

It looks at the pixels in the image, clusters those with similar colour, and returns one representative colour for each of the biggest clusters. The result reflects how much of the picture each colour family occupies. This is why a large background tends to dominate and small bright details may be left out.

Why is the colour I wanted missing from the palette?

Most likely it covers too little of the image to count as dominant. Increase the number of colours towards ten, or crop the image so the area you are interested in fills more of the frame. For one specific colour, the colour picker from image tool reads the exact value of any pixel.

How many colours should a palette have?

Five is a common working number for design: often a dark, a light, one or two mid-tones and an accent. Use more, up to the ten this tool offers, when the photograph is varied or when you want to see minor colours before deciding which to keep. You do not have to use them all.

Can I use the palette in Figma, Canva or CSS?

Yes. HEX codes are a universal way of specifying screen colours, so you can copy each code and paste it into the colour field of design applications, website builders or a stylesheet. The downloadable PNG shows the swatches together and can be placed in a document or shared as a reference.

Is the image I use kept or uploaded?

No. The colour analysis runs in your browser on your device. The picture is not transmitted to a server and is not stored after you leave the page. That makes the tool suitable for client work and unpublished images. On phones, extremely large images may fail because of limited memory.

About the archive behind this page

Archive.London is the home of the Robert Harper Photograph Library: 95,487 photographs made across a career that began in the Condé Nast studios.

Read the archive in factsWrite to the archive