How to create a colour palette from images

Five autumn leaves in a row on cream paper, fading from green through yellow, orange and red to brown

The quickest way to a colour palette that feels right is to borrow it from a picture that already does. Here’s how to pull colours from images, shape them into a palette you can actually use, and keep the codes where your team will find them.

Why start from images

Picking colours from a blank colour wheel is hard. You end up with combinations that are technically fine but feel flat. Photos solve this because the colours in them already belong together: the light, shadows and surfaces have done the work. A good palette taken from a strong image carries some of that image’s mood into your design.

1. Choose the right source image

Not every image makes a good palette. Look for one that:

If you’ve already built a moodboard, the answer is usually there. Pick the image that sums the board up. Our guide on how to make a moodboard covers choosing that hero image.

2. Pull out the colours

There are two ways to do this, and the best results come from using both.

Automatic extraction

Palette generators read an image and return its most common colours. They’re fast and good for a first pass, but they pick by quantity, so a big grey sky can win over the small red coat that makes the photo work.

Picking by hand

Use an eyedropper to sample the colours you notice. Zoom in and sample a few neighbouring pixels, because photos are full of noise and you want the colour the area reads as, not one stray pixel. Pick from:

3. Shape it into a palette

Raw samples are a starting point. Turn them into roles:

Five or six colours covers most projects. Nudge the samples so they sit well together: slightly raise the saturation of a muddy accent, or warm up a neutral so it matches the photo’s light.

4. Check contrast before you fall in love

A palette has to work for text, not just look good in swatches. Check your text and background pairs against the WCAG contrast guidelines: 4.5:1 for normal text and 3:1 for large text. Soft, photo-based palettes often fail here, so you may need a darker version of your dark or a lighter version of your light just for text.

5. Test it on a real layout

Put the colours on a rough page or screen in the proportions you expect: lots of neutral, some secondary, a little accent. A palette that looks balanced as five equal squares can feel loud when the accent covers a whole hero. A common starting split is 60% neutral, 30% secondary and 10% accent.

6. Save the codes where people work

Write down the hex codes and names, and keep them next to the images they came from. That way anyone on the project can see both the colours and the reason for them. In stashloft you can keep the palette on the same board as the references, so the source images and the codes live side by side and copying a code takes one click.

Common mistakes

Want more images to draw from? See our list of design inspiration websites.

Common questions

How many colours should a palette have?

Five or six is a good default: one or two main colours, two or three supporting colours and a neutral. Fewer is fine for a small project; more than eight usually means two palettes.

Can I get the exact hex code of a colour in a photo?

Yes. Any eyedropper tool, in a design app or a browser extension, reads the hex code of a pixel. Sample a few nearby pixels and pick the one that represents the area, since photos have noise and gradients.

Should a palette come from one image or many?

Start with the one image that best captures the mood, then check the palette against the rest of your references. If it fits most of them, it's a good palette.

Keep reading

Seven grey pebbles in a rising line from small to large, like steps, on cream paperDesign processPublished date: How to make a moodboard in 7 stepsA step-by-step guide to making a moodboard for any project: setting the goal, collecting references, picking a palette and sharing it with your team.Read the guideA small bundle of twigs tied with twine on cream paper, like a simple kit of toolsToolsPublished date: The best moodboard tools for designers and teamsA practical comparison of moodboard tools: what to look for, and how stashloft, Milanote, Figma, Miro, Canva, Pinterest and Are.na fit different kinds of work.Read the guideAn open seed pod on cream paper with its seeds spilling out across the pageInspirationPublished date: 12 design inspiration websites worth bookmarkingThe best websites for design inspiration in one list: UI, web, branding, type, photography and more, with what each is best for and how to keep what you find.Read the guide