OKLCH, OKLab & Display P3 Color Converters
10 perceptually uniform CSS Color 4 converters and pickers engineered for Tailwind v4, Display P3 gamut mapping, and HWB workflows.
Tools in this module
Related format specifications
Related practical guides
- Hex to OKLCH: Migrating Design Tokens to Tailwind CSS v4Step-by-step guide to upgrading Hex and HSL Tailwind v3 themes into CSS Color 4 @theme oklch() scales with perceptual brightness and Display P3 support.
- OKLCH vs HSL vs sRGB: Understanding Wide-Gamut Display P3Compare HSL, sRGB Hex, Display P3, and OKLCH across perceptual lightness, gradient dead zones, gamut volume, and CSS progressive enhancement.
Module questions
Do Colr's OKLCH converters detect out-of-sRGB Display P3 colors?
Yes — every tool shows live sRGB vs Display P3 gamut status and applies CSS Color 4 chroma-reduction gamut mapping when converting back to Hex.
Which OKLCH tool helps build Tailwind v4 palettes?
Start with /hex-to-oklch/ for single tokens or /oklch-scale-generator/ for complete 50–950 @theme scales.