How to Build a Color Scheme from a Photo

Learn how to pull the main colors from a photo and split them into background, text and accent colors.

5 min read · Updated 2026-10-04

Split colors into 3 roles

Colors look tidy when you give them three roles.

Once these three are set, you don't have to think about colors every time you design. Even when new photos or content come along, sticking to the same three colors builds a consistent brand feel.

Advertisement (guide-mid)

How to extract colors

Upload a photo to the Color Palette Generator and you get its main colors with HEX codes. You can also click any spot on the photo to pick that color yourself.

Why do 3 color roles look clean?

The more colors there are, the longer it takes the eye to decide where to look first. When roles like background, text and accent are set in advance, viewers naturally move from the wide background to the text they need to read to the button they need to press. When colors are mixed up, people don't know where to focus and the whole design feels cluttered.

Check brightness contrast by eye

Even different hues (red, blue and so on) are hard to read when their brightness is similar. A simple check is to view your design in grayscale. If the background and text are still clearly separated in grayscale, the contrast is enough in the color version too.

Step by step

  1. Pick one or two photos that represent your brand or content.
  2. Upload them to the Color Palette Generator and extract 4 to 6 main colors.
  3. From those, choose one background color for the largest areas, one high-contrast text color and one accent color.
  4. Write down the HEX codes and use the same colors in everything you make from now on.

Carry it into a gradient

Put two of the extracted colors into the Gradient Generator to make a background. You can copy the CSS code right away, too.

Color combination reference

MoodBackground colorsText colors
Calm, trustworthyNavy, dark blueWhite, light gray
Lively, friendlyOrange, yellowBlack, dark brown
PremiumBlack, dark grayGold, white
Natural, relaxedGreen, beigeDark brown, black

Changing colors for seasons or campaigns

A common approach is to keep the base combination and switch only the accent color for a special season (summer, the holidays and so on). Keeping the background and text colors while changing the accent keeps things consistent but still feels new. A small change is often fresh enough, without changing every color.

Good vs. bad examples

Common mistakes

Make sure the brightness difference between text and background is large enough. Colors with similar brightness are hard to read.

Checklist

FAQ

How many colors should I use?

Three to four in total, including background, text and accent, is about right. More than that easily makes a design look cluttered.

Can I use the colors extracted from a photo as they are?

Yes. But when you use one as a text color, always check the contrast with the background. With weak contrast the color may look nice but becomes hard to read.

When should I use a gradient?

It works well when you want to add depth or mood to a background. If you plan to put text on it, it is safer to choose a part of the gradient where the brightness doesn't change too much.

What is a HEX code?

A way of writing a color with numbers and letters. If you note a code like #FF5A36, you can reuse exactly the same color in other tools later.

Can I pick a watermark text color the same way?

Yes. For watermarks too, it is important to choose a color that contrasts with the photo. The brightness contrast check in this guide applies as is.

Try it now

Advertisement (guide-end)