Skip to main content

Introduction to OKLCH

OKLCH is a cylindrical (polar coordinate) representation of the Oklab color space. The name stands for:

The Gravity Field Metaphor

In the Gestalt Color System, we use a gravitational lensing metaphor to understand color relationships:

Why OKLCH for Core Colors?

OKLCH provides three core benefits that make it ideal for defining color identity:
  1. Perceptual Uniformity: L=50% appears equally bright regardless of hue
  2. Golden Angle Rotation: Produces visually equal color steps
  3. Hue-Independent Chroma: Yellow does not require special saturation handling (unlike HSL)
These properties make OKLCH ideal for defining “gravitational anchors” - colors with stable, well-defined identities that other colors can be “dragged” toward.

OKLCH Value Ranges

Golden Angle Constants

The Gestalt Color System uses two golden angle values for different purposes:

Color Conversion Pipeline

The system provides complete conversion between color spaces:

CSS Generation Functions

OKLCH CSS String Generation

Color Mix CSS Generation

Accessibility Functions

The system includes built-in accessibility checking:

THE CENTER

How OKLCH Helps Humans Parse Information Flow

In Human-AI collaboration, users process streams of text from terminals, logs, and AI outputs. OKLCH provides the mathematical foundation that ensures:
  1. Equal perceived brightness - A yellow warning is not louder than a red error
  2. Consistent categorization - Hue reliably maps to meaning
  3. Predictable transitions - Flow colors derived from Core colors maintain identity

Complete API Reference


CSS Variables Architecture

Learn how Core Colors are defined as CSS variables using the SMPC hierarchy