Home
Bookmarks
Leagues
LEARN
Courses
Career Paths
Assessments
Tutorials
Arcade
Glossary
GROW
Certifications
Log in
Glossary
Log inSign up
Courses/Introduction to Design Systems/Color Systems & Dark Mode Architecture/
Exercise #2

Perceptual Uniformity: OKLCH and HSL vs RGB

Traditional hex codes (#3B82F6) and RGB values are hardware-oriented color spaces: they describe how computer monitor sub-pixels emit light, not how human eyes perceive brightness.

In standard HSL, a pure yellow with Lightness 50% (hsl(60, 100%, 50%)) looks blindingly bright, while a pure blue with Lightness 50% (hsl(240, 100%, 50%)) looks dark. This makes automated accessibility contrast impossible to predict.

Modern design systems build palettes using perceptually uniform color spaces like OKLCH or CIELAB:

  • In OKLCH, a Lightness of 0.7 has the exact same perceived brightness whether the hue is yellow, blue, green, or red.
  • This allows design system teams to generate accessible color steps programmatically (e.g., ensuring blue-600 and red-600 have identical contrast ratios against white).

Topics

Anatomy of a Design System Color Palette
Perceptual Uniformity: OKLCH and HSL vs RGB
Tinting Neutrals: Giving Life to Grays
The Dark Mode Fallacy: Inverting Is Not Designing
Elevation in Dark Mode: Surface Lightness
The Semantic State Color Matrix
Color Blindness: Never Rely on Color Alone
High Contrast Mode & Forced Colors Architecture
Decoupling Brand Color from Interactive Accent
Automating Contrast Verification in CI/CD

From lesson

3

Color Systems & Dark Mode Architecture

Level 3 · Design Tokens & Foundations

Top contributors

Community contribution details will appear here once real learner activity is available.

Share