Design Color System
Create a structured palette with semantic roles, accessible contrast ratios, and clear usage rules that scale across light/dark modes and brand contexts.
Why This Is Best Practice
Adopted by: Google Material Design, IBM Carbon, Atlassian Design System, Shopify Polaris — all use semantic color tokens layered over a base palette
Impact: Semantic color tokens reduce brand drift by 70% in enterprise products (IBM Carbon case study); accessible palettes cut WCAG-related rework by 60% when built in up front
Why best: Itten's color theory provides perceptual foundations (hue relationships, temperature, contrast); CIECAM02 provides perceptual uniformity for accessible lightness; Material Design operationalizes both into scalable engineering tokens.
Sources: Itten "The Art of Color" (1961); CIE CIECAM02 (2002); Google Material Design color system docs (2018); WCAG 2.2 contrast criteria
Steps
- Extract brand hues — identify 1–3 brand hues from logo or guidelines; record exact HSL or OKLCH values for precision.
- Build a tonal scale — for each brand hue, generate a 10-step lightness scale (100–900 or 50–950) using perceptually uniform lightness (OKLCH or HSLuv) so each step appears equally distant visually.
- Add neutral palette — create a neutral (gray) tonal scale using the same 10-step system; optionally tint neutrals with the brand hue at 5–10% saturation for brand warmth.
- Add semantic colors — define scales for: error (red), warning (amber/orange), success (green), info (blue); use standard hues modified with brand hue influence.
- Define semantic roles — map tonal values to named roles:
color-primary, color-primary-hover, color-surface, color-on-surface, color-error, color-border, etc.
- Verify contrast ratios — for each foreground/background pair in semantic roles, check WCAG AA (4.5:1 text, 3:1 UI) and AAA where needed; adjust lightness steps until passing.
- Create dark mode mappings — remap semantic roles to different tonal steps for dark mode; do not simply invert — test each pair for contrast and visual comfort.
- Export as design tokens — output as CSS custom properties, JSON, or Figma variables; ensure tokens are referenced by semantic name, not by raw color value.
- Document usage rules — specify which semantic roles are used for which UI contexts; prohibit arbitrary palette value usage outside the token system.
- Audit for color blindness — simulate deuteranopia and protanopia using Stark or Color Oracle; ensure all meaningful color distinctions are also conveyed by shape, text, or pattern.
Rules
- Never use raw hex values in design or code — always reference semantic tokens; raw values create an unmaintainable system.
- Every foreground/background pair must be defined and contrast-checked before being declared usable.
- The primary palette should not exceed 3 brand hues — more creates visual noise; neutrals and semantics supplement, not compete.
- Dark mode is not an inversion — light mode's surface/200 does not become dark mode's surface/800 automatically; map deliberately.
- Color must never be the sole differentiator — pair with icons, labels, or patterns for accessibility.
Common Mistakes
- Building palette without perceptual uniformity — standard HSL lightness is not perceptually uniform; use OKLCH or HCL to avoid muddy mid-tones.
- Too many primary colors — 5+ primaries create a palette that cannot enforce brand identity; merge or subordinate excess hues.
- Semantic tokens that are too granular —
button-primary-hover-border-pressed tokens require maintenance proportional to their specificity; balance specificity with flexibility.
- Not testing on actual displays — colors shift significantly between sRGB monitors, P3 displays, and OLED screens; test on multiple devices.
- Forgetting high-contrast mode — Windows High Contrast and macOS Increased Contrast override many custom colors; test UI integrity under forced color modes.
When NOT to Use
- Single-use campaign designs with no long-term maintenance
- Art prints or illustration work not bound by accessibility requirements
- Third-party white-label products where the color system is externally mandated
1---2name: design-color-system3description: Use when building a brand or product color system with semantic roles, accessible palette, and usage rules4source: Itten "The Art of Color" (1961); CIECAM02 color appearance model (CIE); Material Design color system (Google 2018)5tags: [color, design-system, branding, accessibility, palette]6verified: true7metadata:8 source: https://skillmd.com/skills/jeffreytse/design-color-system9---1011# Design Color System1213Create a structured palette with semantic roles, accessible contrast ratios, and clear usage rules that scale across light/dark modes and brand contexts.1415## Why This Is Best Practice1617**Adopted by:** Google Material Design, IBM Carbon, Atlassian Design System, Shopify Polaris — all use semantic color tokens layered over a base palette18**Impact:** Semantic color tokens reduce brand drift by 70% in enterprise products (IBM Carbon case study); accessible palettes cut WCAG-related rework by 60% when built in up front19**Why best:** Itten's color theory provides perceptual foundations (hue relationships, temperature, contrast); CIECAM02 provides perceptual uniformity for accessible lightness; Material Design operationalizes both into scalable engineering tokens.2021Sources: Itten "The Art of Color" (1961); CIE CIECAM02 (2002); Google Material Design color system docs (2018); WCAG 2.2 contrast criteria2223## Steps24251. **Extract brand hues** — identify 1–3 brand hues from logo or guidelines; record exact HSL or OKLCH values for precision.262. **Build a tonal scale** — for each brand hue, generate a 10-step lightness scale (100–900 or 50–950) using perceptually uniform lightness (OKLCH or HSLuv) so each step appears equally distant visually.273. **Add neutral palette** — create a neutral (gray) tonal scale using the same 10-step system; optionally tint neutrals with the brand hue at 5–10% saturation for brand warmth.284. **Add semantic colors** — define scales for: error (red), warning (amber/orange), success (green), info (blue); use standard hues modified with brand hue influence.295. **Define semantic roles** — map tonal values to named roles: `color-primary`, `color-primary-hover`, `color-surface`, `color-on-surface`, `color-error`, `color-border`, etc.306. **Verify contrast ratios** — for each foreground/background pair in semantic roles, check WCAG AA (4.5:1 text, 3:1 UI) and AAA where needed; adjust lightness steps until passing.317. **Create dark mode mappings** — remap semantic roles to different tonal steps for dark mode; do not simply invert — test each pair for contrast and visual comfort.328. **Export as design tokens** — output as CSS custom properties, JSON, or Figma variables; ensure tokens are referenced by semantic name, not by raw color value.339. **Document usage rules** — specify which semantic roles are used for which UI contexts; prohibit arbitrary palette value usage outside the token system.3410. **Audit for color blindness** — simulate deuteranopia and protanopia using Stark or Color Oracle; ensure all meaningful color distinctions are also conveyed by shape, text, or pattern.3536## Rules3738- Never use raw hex values in design or code — always reference semantic tokens; raw values create an unmaintainable system.39- Every foreground/background pair must be defined and contrast-checked before being declared usable.40- The primary palette should not exceed 3 brand hues — more creates visual noise; neutrals and semantics supplement, not compete.41- Dark mode is not an inversion — light mode's surface/200 does not become dark mode's surface/800 automatically; map deliberately.42- Color must never be the sole differentiator — pair with icons, labels, or patterns for accessibility.4344## Common Mistakes4546- **Building palette without perceptual uniformity** — standard HSL lightness is not perceptually uniform; use OKLCH or HCL to avoid muddy mid-tones.47- **Too many primary colors** — 5+ primaries create a palette that cannot enforce brand identity; merge or subordinate excess hues.48- **Semantic tokens that are too granular** — `button-primary-hover-border-pressed` tokens require maintenance proportional to their specificity; balance specificity with flexibility.49- **Not testing on actual displays** — colors shift significantly between sRGB monitors, P3 displays, and OLED screens; test on multiple devices.50- **Forgetting high-contrast mode** — Windows High Contrast and macOS Increased Contrast override many custom colors; test UI integrity under forced color modes.5152## When NOT to Use5354- Single-use campaign designs with no long-term maintenance55- Art prints or illustration work not bound by accessibility requirements56- Third-party white-label products where the color system is externally mandated