The four layers of a professional palette
Most amateur palettes contain one layer: five random colors that look nice together in a Dribbble shot. Professional palettes contain four distinct layers, each with its own purpose:
| Layer | Purpose | Typical colors |
|---|---|---|
| Brand | Identity, emphasis, primary actions | Primary, secondary, accent |
| Semantic | System states (success, warning, error, info) | Green, amber, red, blue |
| Neutral | Backgrounds, borders, text hierarchy | 9–11 steps from near-white to near-black |
| Data-viz | Charts, graphs, metrics | 6–10 distinguishable colors |
If your palette is missing any of these layers, you will end up inventing colors ad-hoc during implementation — which is exactly what a palette is supposed to prevent.
Layer 1: Brand colors
Brand colors carry the visual identity. Most professional palettes have two or three:
- Primary — the signature brand color. Used for primary buttons, key links, logo accents and primary emphasis.
- Secondary — a supporting color that adds depth without competing. Often a darker or desaturated variant of the primary, or a complementary hue.
- Accent — a sparingly used color for special emphasis — highlights, badges, new-feature callouts.
The primary color must meet 4.5:1 contrast on white and 3:1 as a button background. Many vibrant brand colors fail one or the other — in that case, add a darker variant for text usage.
Worked example: Teal brand
- Primary:
#267D70— passes 5.4:1 on white - Primary-dark:
#1E6359— passes 7.2:1 on white, for text usage - Secondary:
#8BAF9E— a soft sage that complements the primary - Accent:
#FFB4A6— a warm coral for emphasis
Layer 2: Semantic colors
Semantic colors communicate meaning, not identity. Users already have mental models for these — every platform uses them consistently:
- Success — something worked. Typically green:
#16A34Aor#22C55E. - Warning — needs attention but isn't broken. Amber:
#D97706or#F59E0B. - Error — something failed or is dangerous. Red:
#DC2626or#B3261E. - Info — helpful context. Blue:
#2563EBor#1E88E5.
These don't need to match your brand colors. They need to be:
- Distinguishable from each other and from your primary.
- Distinguishable under common color vision deficiencies — red/green pairings fail this test frequently; consider testing with our Color Blindness Simulator.
- Accessible at both 4.5:1 (as text) and 3:1 (as UI component).
Layer 3: Neutral scale
Neutrals do 80% of a typical UI's work. A well-designed neutral scale is the single most important layer for professional-looking results:
| Token | Light mode use |
|---|---|
| 50 | Subtle background (hover on already-light rows) |
| 100 | Default page background |
| 200 | Subtle surface, active row, selected |
| 300 | Borders, dividers |
| 400 | Disabled text, placeholder text |
| 500 | Muted text, captions |
| 600 | Body text (secondary) |
| 700 | Body text (primary), headings |
| 800 | Strong headings |
| 900 | Near-black text, dark backgrounds |
| 950 | Rarest deep tone (dark mode deep surface) |
Two rules for neutrals:
- Do not use pure #000000. A near-black like
#202A27reads better and reduces eye strain. - Choose whether your neutrals are warm or cool — and be consistent. Warm grays (with a slight orange tint) feel more human; cool grays (with a slight blue tint) feel more technical.
Worked example: Cool neutral scale
- 50:
#F9FAFB - 100:
#F1F3F2 - 200:
#E5E7EB - 300:
#D1D5DB - 400:
#9CA3AF - 500:
#6B7280 - 600:
#4B5563 - 700:
#374151 - 800:
#1F2937 - 900:
#111827 - 950:
#030712
Layer 4: Data-viz palette
Data visualization needs colors optimized for a different goal: distinguishability across many series, at small sizes, for users with color vision deficiencies, on both light and dark backgrounds.
The best data-viz palettes are designed specifically for this and rarely overlap with brand colors. A good starting point is a sequential palette of 6–8 colors that maintain distinguishable lightness values:
#003F5C(very dark)#2F4B7C#665191#A05195#D45087#F95D6A#FF7C43#FFA600(very light)
Each color has a distinct lightness, which makes the palette work for line charts, bar charts and pie charts without relying on hue alone.
Putting it together
A complete palette file should contain something like:
/* Brand */
--brand-primary: #267D70;
--brand-primary-dark: #1E6359;
--brand-secondary: #8BAF9E;
--brand-accent: #FFB4A6;
/* Semantic */
--success: #16A34A;
--warning: #D97706;
--error: #B3261E;
--info: #2563EB;
/* Neutrals */
--neutral-50: #F9FAFB;
--neutral-100: #F1F3F2;
/* ... through 950 */
/* Data-viz */
--chart-1: #003F5C;
--chart-2: #2F4B7C;
/* ... through chart-8 */
Testing the palette
Before shipping, verify:
- All text/background combinations meet WCAG AA. Use our Contrast Checker.
- Semantic colors are distinguishable under protanopia and deuteranopia. Use our Color Blindness Simulator.
- Dark mode variants have been designed — not automatically inverted.
- Chart colors remain distinguishable at small sizes and in grayscale.