Building Brand Color Systems

A brand color system is more than a palette. It's the structured set of color tokens, contrast rules and semantic aliases that let designers and developers build consistent products across years of iteration.

By COOLOUR Editorial Team Published Updated

Brand palette vs brand color system

The difference is structural. A brand palette is a set of colors. A brand color system is a set of named tokens that map to colors, with documented rules about when each token should be used.

Why this matters: a palette can't scale. Ten designers using the same eight colors will produce ten slightly different interfaces. A token system — with names like --color-primary, --color-primary-hover, --color-text-primary — produces consistent results across teams, products and years.

Step 1: Define the brand palette

Before building tokens, you need a base palette. This is the strategy layer:

  • Primary brand color — one color, tested against competitors, tested in print, tested for contrast.
  • Secondary color — one or two colors, supporting the primary.
  • Accent — one color for emphasis, used sparingly.
  • Neutral scale — 9–11 steps from near-white to near-black.
  • Semantic colors — success, warning, error, info.
  • Data-viz palette — 6–10 colors optimized for chart series.

Step 2: Build a scale for each brand color

Each brand color needs its own scale — typically 9–11 steps — so that you have a full range of tints and shades to work with. A brand primary at 500 is the reference color; 50 through 400 are lighter, 600 through 900 are darker.

--color-primary-50: #F0F7F5;
--color-primary-100: #DCE9E3;
--color-primary-200: #B4D2C5;
--color-primary-300: #8BAF9E;
--color-primary-400: #4E9B8A;
--color-primary-500: #267D70;
--color-primary-600: #1E6359;
--color-primary-700: #174C45;
--color-primary-800: #103630;
--color-primary-900: #08221E;

Step 3: Create semantic tokens

Semantic tokens are what components actually use. They are named by their function, not their color:

/* Surfaces */
--surface-page: var(--color-neutral-50);
--surface-card: #FFFFFF;
--surface-elevated: var(--color-neutral-100);
--surface-hover: var(--color-neutral-100);

/* Text */
--text-primary: var(--color-neutral-900);
--text-secondary: var(--color-neutral-600);
--text-tertiary: var(--color-neutral-500);
--text-inverse: #FFFFFF;

/* Borders */
--border-default: var(--color-neutral-300);
--border-strong: var(--color-neutral-400);

/* Interactive */
--interactive-primary: var(--color-primary-500);
--interactive-primary-hover: var(--color-primary-600);
--interactive-primary-active: var(--color-primary-700);
--interactive-primary-disabled: var(--color-primary-200);

/* Focus */
--focus-ring: var(--color-primary-500);

The critical detail: semantic tokens point to palette tokens, not to raw hex values. This lets you swap the entire palette later — for example, for a subsidiary brand — without touching any component code.

Step 4: Design dark mode as a separate theme

Dark mode is the same semantic tokens with different palette values. This is where the semantic naming pays off — component code stays identical, only the theme changes.

[data-theme="dark"] {
  --surface-page: #0D0D0D;
  --surface-card: #1A1A1A;
  --surface-elevated: #262626;
  --surface-hover: #333333;

  --text-primary: #F5F5F5;
  --text-secondary: #B8B8B8;
  --text-tertiary: #8A8A8A;

  --border-default: #404040;
  --border-strong: #606060;

  --interactive-primary: var(--color-primary-300);
  --interactive-primary-hover: var(--color-primary-200);
  --focus-ring: var(--color-primary-300);
}

Note that the dark mode primary is not the same as the light mode primary — it's lighter, because interactive colors on dark surfaces need more brightness to stand out.

Step 5: Document contrast ratios

Every text/surface token pair should be documented with its exact contrast ratio:

Token pairContrastWCAG
--text-primary on --surface-page (light)15.5:1AAA
--text-secondary on --surface-page (light)6.8:1AA
--text-primary on --surface-card (light)16.9:1AAA
--interactive-primary on --surface-card5.4:1AA
--border-default on --surface-card3.4:1UI component

This table is one of the most valuable artifacts you can produce for a design system. It lets any designer check compliance in seconds without guessing.

Step 6: Establish rules for composition

A token system is powerful but incomplete without rules. Document:

  • Which tokens can be layered — e.g. "text-secondary is only valid on surface-page and surface-card, not on surface-hover".
  • Which tokens are semantic — e.g. "error tokens are never used decoratively".
  • Which tokens are reserved — e.g. "focus-ring is never used as a decorative border".
  • Which tokens exist only for a specific component — e.g. "chart colors are only valid inside chart components".

Step 7: Export as multiple formats

A complete brand color system is exportable in:

  • CSS custom properties — for web.
  • JSON — for design tools and cross-platform consumers.
  • Figma styles or tokens — for design teams.
  • Swift/Kotlin constants — for mobile apps.
  • Documentation — a living page that reflects current values.

The token file is the source of truth. Every platform's artifact is generated from it.

Step 8: Version and maintain

Treat the color system like software:

  • Version it (v1.0, v1.1, v2.0).
  • Document changelogs — what changed and why.
  • Deprecate tokens gradually, not abruptly.
  • Never silently change a token value — that's how teams lose trust in the system.

What a good color system prevents

  • Every feature adding its own slightly different blue.
  • Accessibility regressions, because contrast ratios are checked once, centrally.
  • Endless debates about which shade to use.
  • Inconsistent dark mode because someone forgot to invert a color.
  • Painful rebrands, because changing the palette means changing tokens, not components.