Chromatic Laboratory

OKLCH Color System, Display-P3 Gamut & Design Token Workstation

sRGB

Perceptual Scale (50–900)

Click or use Arrow keys to inspect • P3 badge indicates wide-gamut step

Semantic Mix Scale (Tint & Shade)

Dynamic color-mix(in oklch, ...) tokens — click any step to copy

Alpha / Opacity Variants

Click to copy OKLCH alpha syntax

WCAG 2.1 Contrast Checker

Selected step 500

Live UI Component Preview

Buttons, typography, brand & subtle surfaces using generated scale

Hue Interpolation

Base → Complement (180°)

Blend Mode Lab

Export Production Design Tokens

theme.css

Why OKLCH & Display-P3?

Traditional HEX and HSL hide perceptual brightness differences — yellow at 50% lightness looks blinding while blue at 50% looks dark. OKLCH aligns lightness directly with human vision and unlocks wide-gamut Display-P3 colors on modern OLED and Retina screens.

  • Predictable Design Systems: Every hue at the same OKLCH Lightness shares equal perceived weight, making automated WCAG contrast scales reliable.
  • Tailwind v4 Native Ready: Export straight into Tailwind v4 CSS-first @theme blocks with zero JavaScript config overhead.
  • W3C Design Tokens (DTCG) Compliant: Export structured .tokens.json files with OKLCH components, sRGB HEX fallbacks, and Display-P3 gamut metadata.

Frequently Asked Questions (FAQ)

What does the Display-P3 Gamut Indicator mean?

Standard monitors only display sRGB colors. Modern Apple, Android, and OLED displays support the wider Display-P3 gamut (~25% more vivid colors). Chromatic Laboratory detects whether your color fits inside sRGB, requires Display-P3, or exceeds Display-P3, and lets you snap chroma cleanly to either boundary.

How do I use the Tailwind v4 @theme export?

Paste the generated @theme { ... } block into your main CSS file after @import "tailwindcss";. Utilities like bg-brand-500, text-brand-900, and bg-brand-tint-2 become immediately available.

Is OKLCH safe for production websites?

Yes — oklch() and color-mix(in oklch, ...) are supported natively across Chrome 111+, Edge 111+, Firefox 113+, and Safari 15.4+. Every exported token also includes an exact sRGB HEX fallback in W3C DTCG JSON and CSS comments.