How to Create a Color Palette From a Photo

Turn any photograph into a usable color palette for websites, brands and illustrations, using the 60-30-10 rule and a few simple checks.

Updated 26 November 2026 · 8 min read

Some of the best color palettes aren’t invented. They’re found. A sunset, a market stall, a vintage poster or a well-lit room already contains a set of colors that work together, because they come from the same light and the same scene. This guide shows how to turn any photo into a practical palette you can use for a website, a brand, a presentation or an illustration.

Why start with a photo?

Picking colors from scratch is hard. Choose them one by one from a color wheel and it is easy to end up with a combination that feels random or clashes. Photographs solve that problem in a few ways:

  • Natural harmony. Every color in a photo is lit by the same light source, which gives them a shared undertone.
  • Built-in proportions. A photo shows you not just which colors work together but how much of each to use.
  • Mood. If a photo captures the feeling you want, such as calm, energetic or luxurious, its colors will carry that feeling into your design.
  • Consistency with imagery. If your site or brand uses specific photography, a palette taken from it makes the whole design feel intentional.

Step 1: Choose the right photo

Not every great photo makes a great palette. Look for images that have:

  • A clear mood that matches your project.
  • A range of lightness, from some light areas to some dark areas, so you get colors for both backgrounds and text.
  • One standout color that could work as an accent.
  • Not too many competing colors. Busy scenes give busy palettes.

Your own photos are ideal. You can also find free, high-quality images on sites like Unsplash and Pexels. Searching for a mood (“misty morning”, “desert sunset”, “citrus”) often finds better palette sources than searching for a color.

Step 2: Extract the colors

Load the photo into the image color picker. The tool automatically extracts up to eight dominant colors and shows them as a bar, with each color’s width matching how much of the image it covers.

The automatic palette is a great starting point, but it favours colors that cover large areas. Small, striking details, like a red door in a grey street, may not appear. Use the picker to click those details and add them to your “Recently picked” list.

Aim to collect 8 to 12 candidate colors. Then narrow them down to a final palette of about five: usually one or two neutrals, one or two main colors, and one accent.

Step 3: Give each color a role

A palette is only useful when you know what each color is for. A simple and reliable structure is the 60-30-10 rule:

RoleShareTypical usesWhat to pick from the photo
Dominant / background~60%Page backgrounds, large sectionsA light, low-saturation color, such as sky, sand, wall or paper
Secondary~30%Cards, headers, navigation, illustrationsA mid-tone color that defines the mood
Accent~10%Buttons, links, highlights, iconsThe most vivid color in the photo
TextAs neededBody copy and headingsThe darkest color, often a deep shadow tone
Tip

Your text color doesn’t have to be black. Taking the darkest shadow from the photo, often a deep navy, brown or green, gives a softer look that still ties in with the palette. Just check it has enough contrast.

Step 4: Adjust colors for real use

Colors that look beautiful in a photo don’t always work as flat areas on a screen. Expect to make some small adjustments:

  • Lighten backgrounds. A sandy beige picked from a photo might be too dark for a full-page background. Raise its lightness until it feels airy.
  • Boost the accent. Accent colors from photos can be slightly dull because of lighting. Increase saturation a little so buttons stand out.
  • Deepen the text color. Shadows in photos are rarely dark enough for body text. Darken until it passes contrast checks.
  • Create tints and shades. Interfaces need hover states, borders and subtle backgrounds. Generate a scale for each main color with the color converter.

HSL makes these tweaks easy. Change only lightness or saturation and keep the hue the same, so the color still feels like it came from the photo.

Step 5: Test your palette

  1. Check contrast. Body text needs a contrast ratio of at least 4.5:1 against its background, and buttons need at least 3:1 against their surroundings. Use the contrast checker.
  2. Check it in greyscale. Convert a mock-up to black and white. Your accent and primary actions should still stand out.
  3. Try it in a real layout. Palettes look very different as small swatches than as a full page. Build a quick mock-up with a header, some text, a card and a button.
  4. Check color-blind accessibility. Make sure important information isn’t shown by red and green alone.

Example palettes

Here is what this process might produce from a few typical photos.

Beach at midday

A bright, fresh palette for travel, wellbeing or summer campaigns. The sand becomes the background and the sea becomes the accent.

Sand (bg)#F8F3EA
Dune#E3D3B5
Shallows#7FC8D6
Sea (accent)#1C8CA8
Deep water (text)#173A4A

Autumn forest

A warm, earthy palette that suits food, craft, outdoor and lifestyle brands.

Mist (bg)#F6EFE6
Bark#C9A27E
Moss#6B7F4E
Leaf (accent)#C8552B
Soil (text)#2E2420

City at night

A dark, high-energy palette for tech, music, gaming and events. In a dark palette the roles flip: the darkest color becomes the background.

Night (bg)#0F1020
Shadow#242748
Neon blue#5B5FD9
Neon pink (accent)#FF4F8B
Light (text)#EDEBFF

Save and document your palette

Once you’re happy, write down each color’s HEX value and role. The picker’s Copy as CSS button gives you ready-made CSS custom properties, which makes it easy to drop the palette into a website and change it later. For printed materials, also note CMYK values and confirm them with your printer. See RGB vs CMYK for why.

To understand why these combinations work, read our color theory guide.