ColorToolkits
Format Converter

OKLCH to RGB Converter

Convert perceptual OKLCH CSS colors to decimal sRGB integers with automatic OKLCH chroma clamping.

Converted (RGB)
rgb(42 142 255)
#2A8EFF
Try presets:

How to Use This Tool

  1. Enter or paste your OKLCH value or choose one of the curated preset swatches.
  2. Copy the formatted RGB value directly, or inspect the secondary HEX, RGB, HSL, and OKLCH chips below.
  3. 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

More Color Tools

View all tools →