OKLCH to RGB Converter
Convert perceptual OKLCH CSS colors to decimal sRGB integers with automatic OKLCH chroma clamping.
How to Use This Tool
- Enter or paste your OKLCH value or choose one of the curated preset swatches.
- Copy the formatted RGB value directly, or inspect the secondary HEX, RGB, HSL, and OKLCH chips below.
- Click into Tailwind Scale Generator or Contrast Checker to validate accessibility on the converted shade.
Key Features
- Bidirectional parsing supporting CSS Color Level 4 syntax cleanly
- Polar OKLCH transforms to rectangular OKLab (a = C cos h, b = C sin h), passes through inverse cube-root LMS cone matrices to linear sRGB, and clamps high-chroma colors cleanly.
- Instant clipboard feedback with live OKLCH and Display-P3 gamut safety
- Zero server round-trips—every calculation executes immediately in browser memory
OKLCH → OKLab → LMS → Linear sRGB → Byte RGB
Polar OKLCH transforms to rectangular OKLab (a = C cos h, b = C sin h), passes through inverse cube-root LMS cone matrices to linear sRGB, and clamps high-chroma colors cleanly.
Reference Snippet (CSS Progressive Fallback)
.badge {
color: rgb(37 99 235);
color: oklch(0.546 0.215 262.9);
}Frequently Asked Questions
Simple channel clipping shifts blues toward cyan or purple; OKLCH binary chroma reduction keeps lightness and hue angle intact inside sRGB.
More Color Tools
View all tools →Color Converter
Convert single or bulk colors across HEX, RGB, HSL, OKLCH, P3, CMYK, and mobile formats.
Color Picker & Eyedropper
Pick exact colors in HEX, RGB, HSL, or OKLCH and sample pixels directly from your screen.
Tailwind Color Scale
Turn any brand color into a balanced 50–950 Tailwind scale with live contrast checks.
Contrast Checker
Check text and UI contrast against WCAG AA/AAA and APCA standards, with 1-click fixes.