Skip to content
Generate now

How to Apply a Color Palette to Any Design

Finding five colours that look good together is the easy part. The tricky part is using them: which one becomes the background, which goes on buttons, and how do you stop the result from looking like a box of crayons? A palette only works when each colour has a clear job. This guide explains how to assign roles, balance proportions, keep text accessible and turn hex codes into a system you can reuse across a website, a slide deck or a brand.

Options

Tip: press Enter or Space to generate again.

Ready

Give Every Colour a Role

Before you paint anything, label each colour in your palette with a job:

  • Background: a light or dark neutral that fills most of the space.
  • Surface: a slightly different shade for cards, panels and sections.
  • Text: a colour with strong contrast against the background.
  • Primary: your brand colour for key elements such as headers or links.
  • Accent: the colour that says โ€œclick meโ€ โ€” buttons and highlights.

If your palette has no suitable neutral, add a near-white or near-black. Most interfaces need far more neutral space than bright colour.

The 60-30-10 Rule

Interior designers have long used a simple proportion guide that translates well to screens:

  • 60% dominant colour โ€” usually the background or main neutral.
  • 30% secondary colour โ€” surfaces, sections, larger shapes.
  • 10% accent colour โ€” buttons, icons and details that should stand out.

The numbers are approximate, not a law. The point is hierarchy: if every colour gets equal space, nothing stands out. Keeping the accent rare is what makes it effective.

Using the Color Palette Generator in Your Workflow

The tool on this page opens in Harmonious palette mode with five related colours, each with its hex code. A practical workflow:

  1. Generate harmonious palettes until one matches the mood of your project.
  2. Use the Palette menu to explore alternatives โ€” Pastel for soft tones, Vivid for energy, Dark for deep shades, Named colors or Fully random.
  3. Adjust How many? (1 to 60) if you want a larger swatch library to choose roles from.
  4. Copy single hex codes or the whole palette, or export it as CSV, JSON or TXT.
  5. Assign each colour a role from the list above, then build a quick mock-up to test the balance.
  6. Save the share link so your team can reopen the tool with the same settings.

Check Contrast Early

A palette that looks lovely as swatches can fail when text sits on top. The Web Content Accessibility Guidelines (WCAG) recommend a contrast ratio of at least 4.5:1 for normal body text and 3:1 for large text at the AA level. Use a contrast checker on every text and background pair you plan to use, including text on buttons.

Also avoid relying on colour alone to communicate meaning. Pair a red error state with an icon or a message, so people with colour vision deficiencies still understand it.

Turn Hex Codes Into Design Tokens

Once roles are decided, store them as named variables rather than scattering hex codes everywhere. In CSS that means custom properties:

:root { --color-bg: #FAF7F2; --color-accent: #C02E26; }

Name variables by role, not by appearance โ€” --color-accent rather than --red โ€” so you can change the accent later without renaming anything. The same idea works in design tools that support shared styles, and it makes adding a dark theme far easier.

A Quick Example

Imagine a five-colour palette for a small bakery website: cream, warm beige, chocolate brown, terracotta and sage green. Assigned roles might look like this:

  • Cream โ€” page background, the dominant 60%.
  • Warm beige โ€” cards and footer, part of the 30%.
  • Chocolate brown โ€” headings and body text, chosen for strong contrast on cream.
  • Sage green โ€” illustrations and section dividers, the rest of the 30%.
  • Terracotta โ€” the โ€œOrder nowโ€ button and sale badges, the 10% accent.

Every colour has a job, so the page feels calm yet guides the eye straight to the button.

Pro tips

  • Test your palette in grayscale to check that the hierarchy still reads.
  • Use slightly tinted neutrals instead of pure grey for a warmer feel.
  • Limit the accent to one or two colours.
  • Document each colourโ€™s role and hex code in a one-page style guide.

Frequently asked questions

How many colours should a brand palette have?

Many brands use one or two main colours, one accent and a set of neutrals. Larger systems add tints and shades of each, but the core set usually stays small.

What is the difference between a tint and a shade?

A tint is a colour mixed with white, making it lighter; a shade is a colour mixed with black, making it darker. Both are useful for hover states and surfaces.

Should I design a dark mode palette separately?

Usually yes. Simply inverting colours rarely works well, so define dark backgrounds and adjusted accents with their own contrast checks.

Try a generator

Random Address Generator

Realistic street addresses with valid-format postal codes and phone numbers for 40 countries.

Fake Identity Generator

Complete fictional person profiles: name, birthday, address, phone, email, job and more.

Need random data? Get it now.

Pick any of 144 generators, hit Generate and copy or export the results as CSV, JSON or TXT. No account, no limits, nothing stored.

Start generating โ€” free