Skip to main content

Lesson 3 of 9

Building a Color System - Primary, Secondary, Neutral & Semantic

A color system is a structured set of colors organized into roles and scales that work together across an entire product. The difference between a 'color palette' and a 'color system' is architecture: a palette is a collection of colors, a system is a set of rules for how those colors are used, extended, and applied. Every major design system (Material Design, Apple Human Interface Guidelines, Shopify Polaris) has a well-defined color system. Building one for your product ensures visual consistency, makes dark mode possible, and dramatically speeds up design work by eliminating constant color decisions.

40 minBy Priygop Editorial TeamUpdated 2026Peer Reviewed & Verified

Color System Architecture

A professional UI color system has four layers. Layer 1 - Brand Colors: 1-2 colors that represent the brand personality. These are chosen for aesthetics, market positioning, and brand identity - not utility. Layer 2 - Color Scales (Primitive tokens): Each brand color expanded into a 10-shade scale from lightest (50) to darkest (950), following the convention: 50, 100, 200, 300, 400, 500, 600, 700, 800, 900, 950. The 500 value is typically the base brand color. Lighter shades (50-200) are used for backgrounds and subtle fills. Mid-range shades (300-500) are used for borders, icons, and accents. Darker shades (600-900) are used for text on light backgrounds and high-emphasis elements. Layer 3 - Semantic Tokens: Named tokens that reference the scale with semantic meaning - Primary, Secondary, Tertiary, Neutral, Success, Warning, Error, Info. These semantic names are what your design system components reference, not the raw scale values. Layer 4 - Component Tokens: Specific color assignments for specific components - ButtonPrimary-Background, Input-Border-Default, Input-Border-Focus. This layered architecture is what makes design system theming and dark mode technically feasible.

Diagram
Loading diagram…

Building a Color System - Primary, Secondary, Neutral & Semantic: Visual guide and core principles.

Building a Color Scale in Figma

  • Step 1 - Start with your brand's mid-tone: Pick your primary brand color at 500 (medium lightness). This should be the color you'd use as a large filled element - vibrant enough to be recognizable, not so dark it's heavy
  • Step 2 - Generate lighter shades (50-400): Increase lightness progressively toward white. 400 is slightly lighter than 500. 300 is noticeably lighter. 200 is very light, suitable for hover backgrounds. 100 is barely tinted - a light background color. 50 is the faintest tint, almost white
  • Step 3 - Generate darker shades (600-950): Decrease lightness progressively toward black. 600 is the hover state of 500. 700 is pressed state. 800 is suitable for text on white backgrounds. 900 is dark enough for body text. 950 is nearly black - headings on light backgrounds
  • Step 4 - Create Figma color styles: Create a Figma color style for each shade. Naming convention: [color-name]/[shade]. Example: 'Blue/50', 'Blue/100', 'Blue/500', 'Blue/900'. These become your primitive token library
  • Step 5 - Define semantic mappings: Create semantic styles that reference your primitive scales. 'Primary/Default' = Blue/500. 'Primary/Hover' = Blue/600. 'Primary/Subtle' = Blue/100. 'Primary/Text' = Blue/800. This mapping layer is what you'll actually use in component design
  • Tool tip: Use the Figma plugin 'Huemint' or 'Palette Generator' to generate harmonious scale candidates. Then adjust individual shades manually in HSL to ensure sufficient contrast ratios at key levels

Neutral Colors - The Backbone of UI

Neutral colors (grays) make up 60-70% of most UI surfaces - backgrounds, borders, dividers, placeholder text, and disabled states. Yet neutrals are consistently underdeveloped in amateur design systems. Professional neutrals have two important properties: (1) They're slightly warm or cool - never perfectly neutral gray (equal R, G, B). Pure gray (R128, G128, B128) looks flat and digital. Slightly warm grays (with a hint of red-orange) feel more natural and pair with warm brand colors. Slightly cool grays (with a subtle blue) feel crisp and pair well with blue or purple brands. (2) The scale is practical rather than aesthetic - each step must be visually distinct enough to use as a separate level in the hierarchy. If Gray/100 and Gray/200 look the same in context, you have too many shades. Common neutral applications: Background (Gray/50), Surface/Card (Gray/100), Border (Gray/200), Placeholder text (Gray/400), Secondary text (Gray/500), Primary text (Gray/900). Keep these semantic mappings consistent across your entire product.

Tip

Tip

Practice Building a Color System Primary Secondary Neutral Semantic in small, isolated examples before integrating into larger projects. Breaking concepts into small experiments builds genuine understanding faster than reading alone.

Practice Task

Note

Practice Task - (1) Write a working example of Building a Color System Primary Secondary Neutral Semantic from scratch without looking at notes. (2) Modify it to handle an edge case (empty input, null value, or error state). (3) Share your solution in the Priygop community for feedback.

Quick Quiz

Common Mistake

Warning

A common mistake with Building a Color System Primary Secondary Neutral Semantic is skipping edge case testing - empty inputs, null values, and unexpected data types. Always validate boundary conditions to write robust, production-ready ui ux code.

Key Takeaways

  • A color system is a structured set of colors organized into roles and scales that work together across an entire product.
  • Step 1 - Start with your brand's mid-tone: Pick your primary brand color at 500 (medium lightness). This should be the color you'd use as a large filled element - vibrant enough to be recognizable, not so dark it's heavy
  • Step 2 - Generate lighter shades (50-400): Increase lightness progressively toward white. 400 is slightly lighter than 500. 300 is noticeably lighter. 200 is very light, suitable for hover backgrounds. 100 is barely tinted - a light background color. 50 is the faintest tint, almost white
  • Step 3 - Generate darker shades (600-950): Decrease lightness progressively toward black. 600 is the hover state of 500. 700 is pressed state. 800 is suitable for text on white backgrounds. 900 is dark enough for body text. 950 is nearly black - headings on light backgrounds

Hands-on Practice Tools for this Course

Test what you learn using these free in-browser developer utilities (no signup required).

All 40+ Tools

Topics in This Module

0/9 done