Color Theory That Holds Up in a Real Interface
Color theory for UI work: the color wheel and its schemes, why OKLCH beats HSL, WCAG contrast as lightness steps, and how Material 3 names 26 color roles.

Color theory for UI work: the color wheel and its schemes, why OKLCH beats HSL, WCAG contrast as lightness steps, and how Material 3 names 26 color roles.

Color theory is the set of rules for how colors relate, mix and contrast: the color wheel, harmony schemes, and the hue, saturation and lightness of each color. In interface design it has a measurable job, because WCAG 2.2 requires a 4.5:1 contrast ratio for body text, and Material Design 3 turns a palette into 26 named color roles.
That job is where most color advice falls short. Low contrast text showed up on 83.9% of home pages in WebAIM's 2026 scan of the top million sites, up from 79.1% in 2025. A palette can follow every harmony rule and still fail that check.
This guide covers color theory from the color wheel and its schemes to the parts that decide whether a UI works: lightness, contrast and semantic color in a design system.
oklch() has been Baseline widely available across browsers since May 2023.Color theory describes how colors relate on a wheel, how they combine into schemes, and how changes in hue, saturation and lightness change what you see. The W3C's colour theory primer starts with the basics: primary, secondary and tertiary hues, then tints (white added), tones (gray added) and shades (black added).
Those ideas came from painting and print. Screens mix light instead of pigment, so a UI designer works in RGB values, picks them through a model such as HSL or OKLCH, and has to meet contrast rules that a painter never faced.
The traditional wheel puts red, yellow and blue as primaries, orange, green and violet as secondaries, and the six mixes between them as tertiaries, for 12 segments. Every harmony scheme is a rule about positions on that wheel. In Adobe Color, you pick a base color and a harmony type, and the wheel generates the matching scheme.
Color carries three loads in a product UI: hierarchy (what to look at first), state (hover, selected, disabled, error) and brand. Get the first two wrong and people miss buttons or read an error as a success message.
It also decides who can use the product. About 1 in 12 men have color vision deficiency, per the US National Eye Institute, which is why WCAG treats color alone as an unreliable signal (more on that below).
Every color you pick has three dimensions. Most color models give them slightly different names, but the split is the same, and each one does a different job in an interface.
Dimension | Also called | What it controls in UI | Where it fails you |
|---|---|---|---|
Hue | Color family | Brand, meaning (red for errors) | Fails users with color vision deficiency when used alone |
Chroma | Saturation, colorfulness | Emphasis, how loud an accent feels | Loud on large areas, so keep high chroma for accents |
Lightness | Value, tone, grade | Contrast, hierarchy, readability | HSL lightness does not match perceived lightness |
Hue is the position on the wheel: red, orange, blue and so on. In a product UI, hue mostly carries meaning (blue links, red errors, green success) and brand recognition.
Hue is also the dimension that harmony schemes manipulate, which is why classic color theory feels hue-heavy. Hue alone cannot carry information, though, because WCAG 1.4.1 bars color as the only visual means of conveying information.
Chroma (or saturation in HSL) measures how far a color sits from gray. Material Design's HCT model defines chroma as how colorful or neutral a color is, alongside hue and tone.
In an interface, chroma sets emphasis. A saturated blue button pulls the eye; the same hue at low chroma reads as a quiet background tint.
Lightness (called value in painting, tone in Material's HCT, grade in USWDS) decides contrast. Contrast decides whether text is readable and whether a button looks like a button.
This is the part classic color theory underplays. Two colors from a textbook complementary pair can share nearly the same lightness, which looks vivid on a poster and fails as text on a background.
Harmony schemes are starting points for picking hues. Adobe Color's palette generator lists complementary, split-complementary, analogous, triadic and monochromatic as the common harmonies, and the W3C primer adds tetradic schemes.
Scheme | Wheel rule | Good UI use | Watch out for |
|---|---|---|---|
Monochromatic | One hue, many tints and shades | Neutral-heavy dashboards, single-brand products | Needs a separate hue for errors and warnings |
Analogous | Neighbors on the wheel | Illustrations, onboarding, marketing pages | Low hue contrast, so lean on lightness |
Complementary | Opposites on the wheel | One accent against a brand color | Equal-lightness pairs vibrate as text |
Split-complementary | Base plus the two neighbors of its opposite | Brand plus two supporting accents | Three hues to map to roles |
Triadic | Three hues evenly spaced | Charts, data categories, playful brands | Hard to keep one color dominant |
Tetradic | Two complementary pairs | Data visualization | Too many accents for controls |
Product interfaces are mostly neutral. On r/UXDesign, the recurring advice to designers who struggle with color is to get the neutrals right first, then add one primary color for links and calls to action.
That is a monochromatic base plus a functional accent. You build the base from one gray ramp, then reserve saturated color for things the user can act on.
A scheme tells you which hues belong together. It does not tell you which lightness each one needs for text, borders or fills.
Pick hues from the wheel, then set every value from a lightness scale. The next two sections show how.
The classic way to build a palette is HSL: keep the hue, change saturation and lightness. The problem is that HSL lightness is a formula, not a measurement of what you see.
The CSS Color 4 specification says HSL lightness "does not correspond to the visual perception of lightness across hues." Material Design's color team measured the gap: at HSL lightness 50, accurately measured lightness ranges from 33 to 96 depending on hue.
OKLCH is a polar version of the Oklab color space, which the CSS spec describes as more perceptually uniform than CIE Lab. Its three numbers are lightness, chroma and hue.
The spec gives a clean example: sRGB blue is oklch(0.452 0.313 264.1) and sRGB yellow is oklch(0.968 0.211 109.8). Those lightness values match what you see, a dark blue and a very light yellow, where HSL calls both "50% lightness."
The oklch() function is Baseline widely available and has worked across browsers since May 2023. Tailwind CSS v4 moved its default palette from rgb to oklch, and every default color has 11 steps from 50 (lightest) to 950 (darkest).
For a palette, OKLCH means you can rotate hue while holding lightness steady. Two colors with the same L value look about equally light whatever their hue, so one set of lightness steps can serve every color in the system.

WCAG turns lightness into pass or fail. Contrast is calculated as a ratio of relative luminance between two colors, so a pair passes or fails on how far apart the two sit in lightness, whatever their hues.
Element | WCAG 2.2 AA minimum | Criterion |
|---|---|---|
Body text | 4.5:1 | |
Large text (18 pt, or 14 pt bold) | 3:1 | 1.4.3 |
UI components and meaningful graphics | 3:1 against adjacent colors | |
Links set apart only by color | 3:1 against surrounding text |
The ratios are not rounded: W3C states that 4.499:1 does not meet the 4.5:1 threshold. Check exact values with a contrast checker and see the full WCAG requirements for the rest of AA.
Design systems make contrast predictable by building lightness into their scales. The US Web Design System grades every color from 0 (pure white) to 100 (pure black), and calls the grade difference between two colors the "magic number."
Per USWDS, a magic number of 40 or more meets AA for large text, 50 or more meets AA for normal text, and 70 or more meets AAA. Any grade-50 color passes AA against both pure white and pure black.

Material's HCT uses the same idea with tone. Small elements under 40 dp need a tone difference of 50 from their background, and larger elements need 40.
A pair can pass and still read poorly in context. Diana Khalipina on LinkedIn (Mar 2026) points to Josef Albers' Interaction of Color to explain why: the same color can look lighter, darker, warmer or cooler depending on the colors around it.
Check each text color against every background it sits on, including hover and selected states, cards and dark mode.
A design system does not hand you a wheel. It hands you roles: names that describe what a color does, with values that change by theme.
Material Design 3 has 26 standard color roles in six groups: primary, secondary, tertiary, error, surface and outline. Roles that start with "on" are for text and icons placed on their paired color, and Material says those color pairs provide a minimum 3:1 contrast.
With dynamic color, one source color generates five key colors, each key color becomes a tonal palette of 13 tones, and tones are assigned to the 26 roles. The harmony work happens in code, and the paired roles keep their 3:1 minimum.

Atlassian applies color through design tokens whose names start with "color," then the property, then modifiers. color.background.danger.bold.hovered tells you the property (background), the meaning (danger), the emphasis (bold) and the state (hovered).
Atlassian also separates accent colors from semantic ones: accents carry no meaning and can be swapped, and the guidance says not to use an accent when the color has semantic meaning. For naming patterns you can reuse, see this design tokens skill.
Apple's Human Interface Guidelines define dynamic system colors by their purpose, rather than by their appearance or color values, so they adapt to light and dark contexts. Apple asks for custom colors to come with light and dark variants, plus an increased contrast option for each.
The same page tells you to avoid redefining the semantic meanings of system colors. A red that means "destructive" in one screen should not mean "featured" in another.
Dark mode needs its own palette. Apple asks for separate dark variants of custom colors, and Atlassian ships dedicated neutrals for light and dark mode as two separate ramps.
Designer and YouTuber Kole Jain gives a practical rule in "Why the 60-30-10 Rule is RUINING Your UI Designs" (Jan 2026, 3:42): dark colors look more alike, so "double the distance." Light-mode neutrals about 2% apart need roughly 4 to 6% between them in dark mode.
Accent colors move too. In the same video, Jain uses the 500 or 600 step of the brand ramp as the main color in light mode and a 300 or 400 in dark mode.
The 60-30-10 rule splits a design into 60% dominant color, 30% secondary and 10% accent. It works as a rough proportion for marketing pages, but it is a rule of thumb, not a standard.
Product UIs break it. Kole Jain describes Vercel's interface as "like 90% black, 8% white, and 2% red", with the red sometimes absent. For a product UI, Jain counts about four background layers, one or two strokes and about three text colors before any accent, so the split skews heavily toward neutrals.
Use 60-30-10 to sanity-check a landing page. For an app, count roles instead: background layers, borders, text levels, one primary ramp, and status colors.
These tools each handle one part of the job. For a price and feature comparison, see the UI Things roundup of color palette generators.
Tool | Color theory job |
|---|---|
Harmony rules on a wheel, plus a color blindness simulator | |
Pick and convert colors in OKLCH | |
Figma plugin that emulates dynamic color and builds custom tonal schemes | |
Generates swatches from target contrast ratios | |
Checks one foreground and background pair |
A complementary pair taken straight off the wheel can sit at the same lightness, which fails as text and vibrates as a fill. Pick hues from the scheme, then set each value from a scale with known contrast steps.
Stepping HSL lightness by 10 gives you uneven steps, because HSL lightness 50 can measure anywhere from 33 to 96. Build ramps in OKLCH, or check every step's contrast.
A red border on an invalid field can go unnoticed by users with color vision deficiency. Pair color with an icon, text or a thicker border, as WCAG 1.4.1 requires.
A token called blue-button breaks the day the brand turns green. Name tokens by job (primary, surface, danger) so the value can change by theme or brand without renaming. Teams running several brands from one system use exactly this split, as the guide to multi-brand design systems shows.
Inverting a light palette collapses the differences between dark surfaces. Give dark mode its own steps and test every text and border pair again.
The US Web Design System builds accessible color into one rule based on lightness. Every color in its 24 color families gets a grade from 0 to 100, and USWDS regularizes the grades so grade 50 in one family is as light as grade 50 in any other.
That turns a ratio calculation into subtraction. On a gray-90 background, text needs a grade of 40 or below to reach a magic number of 50 and Section 508 AA contrast, per the same USWDS page.
The lesson carries to any team: choose hues with color theory, then lock lightness into a scale whose steps map to contrast. See how USWDS documents the rest of its system on the USWDS profile.

Adobe XD is in maintenance mode. This hub covers official File > Get UI Kits and UI Things collections for free kits, websites, dashboards, and travel.

WCAG 2.2 for designers: what A, AA and AAA mean, the 55 criteria behind an AA claim, the 9 new rules in 2.2, and the WCAG 3 draft heading into 2027.

An ARIA label names a control with no visible text. When to use aria-label, when native HTML wins, and the misuse that hides the words on your button.