What Is a Color Palette? Beginner’s Guide

December 2, 2025 • 3 min read
A color palette is the fixed set of colors a design is allowed to use, usually three to six plus a few neutrals. Each color has a job: one or two brand colors, neutrals for text and backgrounds, and an accent for buttons and highlights. A defined palette keeps a website, app, or brand consistent across every page and file.


Roles in a Palette

Role Job Typical Share of the Design How Many
Base / brand Identity; headers, logos, primary buttons ~30% 1–2
Neutrals Backgrounds, surfaces, body text, borders ~60% 3–8 steps of one gray family
Accent Calls to action, links, highlights ~10% 1
Semantic Success, warning, error, info states Only where needed 3–4

The percentages follow the 60-30-10 rule of thumb from interior design: a dominant color, a secondary, and a small accent. It is a starting point, not a law; interfaces are often closer to 80% neutral.

The words “primary” and “secondary” are sometimes used for these roles, but that clashes with primary and secondary colors in color theory, so “brand” and “accent” are clearer.


Types of Palettes

Palettes are usually built on one of the color harmony structures, or taken from a source image:

  • Monochromatic — one hue in several lightness steps; calm and easy to keep readable
  • Analogous — neighboring hues, such as teal, blue, and indigo; cohesive
  • Complementary — a base plus its opposite as the accent; strong emphasis
  • Triadic — three evenly spaced hues; lively, needs one clear leader
  • Photo-derived — colors sampled from a photograph; natural and distinctive

Example 1: A Product UI Palette

The swatch.ing interface uses a dark neutral base with two brand colors:

Background:  #0B0B10   near-black neutral
Panels:      #16161D   slightly lighter neutral
Headings:    #F9FAFB   off-white          18.8:1 on background
Body text:   #A9ACB8   cool light gray     8.7:1 on background
Brand blue:  #2387FF   links, buttons      5.6:1 on background
Brand purple:#A855F7   gradient, accents   5.0:1 on background

Neutrals cover nearly everything, and the two brand colors appear only where something should stand out. Every text pair is above the WCAG 4.5:1 minimum.


Example 2: A Palette From a Photo

Five colors sampled from a photo of autumn leaves, ordered dark to light:

#290E05   Root Beer
#8A3324   Burnt Umber
#D6372A   Pimento
#EC5F3B   Persimmon Orange
#F7B38B   Peachy

This is an analogous palette (every hue is red-orange), so contrast has to come from value. Pairing the darkest and lightest works well: #F7B38B text on #290E05 is 10.2:1. White text on Pimento #D6372A is 4.7:1, which just passes for body text.


How Many Colors?

  • Brand identity: 1–3 core colors, plus neutrals
  • Website or app: 1–2 brand colors, 1 accent, a neutral scale of 5–10 steps, and 3–4 semantic colors
  • Illustration or poster: often 4–6, chosen freely

Each additional hue makes the next decision harder. If two colors do the same job, drop one.


Writing a Palette Down

Store every color in at least one exact format, and note its role:

In code, palettes usually become named tokens, such as --color-brand: #2387FF;, so a single change updates every use.


Common Pitfalls

  • Choosing colors without their text pairs. A brand blue that fails 4.5:1 on white (like #2387FF at 3.51:1) needs a darker variant, such as #0070F7, for links and small text.
  • No neutral scale. Palettes listing only saturated colors leave every background and border decision undefined.
  • All colors the same value. Five mid-tones give no hierarchy; include clearly light and clearly dark members.
  • Accent overuse. When the accent appears everywhere, nothing stands out. Reserve it for the single most important action per screen.
  • Screen-only colors in a print brand. Electric blues and neon greens fall outside CMYK; check print versions before the palette is final.

Building Your Own

Start from one base color or one photo, assign roles, add a neutral scale, and check every text pair for contrast. The swatch.ing color extractor pulls a palette from any image, and the palette library has ready-made palettes to start from.

Keep learning

More on color theory

All guides