🌐 English

Home › Guides

Picking a palette from a photo

A good photo already contains colors that work together, so a palette pulled from it carries little risk. But sampling at random tends to give dull colors. This guide covers where to sample, how to assign roles and how to tidy the result.

Why start from a photo

Choosing colors from nothing is daunting, but if you already have a photo whose mood you like, the problem changes. Sunsets, forests and cafes carry color relationships that already feel natural. Colors taken from a brand or product photo also sit comfortably beside that photo in a layout. Pulling colors from a photo is one of the fastest ways to find inspiration. The same photo can give completely different moods depending on where you sample, so begin with plenty of candidates and narrow them down.

One caution is copyright. Colors themselves are not protected, but using someone else’s photo in your design is a separate matter. Even when you only want to borrow colors, prefer images you shot yourself or have permission to use.

Where to sample

A single point in a photo wobbles slightly because of lighting, compression and noise. Even in the same sky, each pixel has a different value, so choose representative spots.

Assigning five roles

An image color extractor will pull the main colors automatically, but it is better to assign roles than to use them as they come. Make the largest-area color the background, and choose one dark color with strong contrast against it for text. From what remains, pick the most saturated as the accent and use the rest as supporting colors or borders. Recording extracted colors with names helps a team use the same ones. Naming them after the photo, such as sunset orange or sea navy, makes them easy to remember.

If the extracted colors are too similar the proportions feel monotone, and too many make the layout messy. As a rule of thumb, one background, one text, one accent and two supporting colors is enough for most screens.

Cleaning up the colors

Raw photo colors are often dull or hard to read on screen. A few adjustments make them far more usable.

Example workflow

Say you take an orange from the sky, a deep navy from the sea and a pale pink from the clouds in a sunset photo. The pale pink becomes the background, the navy becomes text and headings, and the orange becomes the main button. Run each of the three through the palette generator to make their scales, and you have a complete site color system that keeps the photo’s mood.

Record the colors as HEX codes, and convert to HSL or RGB in the color converter if you need them. The image is processed inside your browser, so nothing needs to be uploaded.

Common mistakes

A few mistakes repeat when people extract colors from photos. Reading them once before you begin saves wasted effort.