RGB to OKLCH Converter

RGB is device-oriented (it describes what the screen does); OKLCH is human-oriented (it describes what the eye perceives). Converting between them is the foundation of modern design tokens.

How RGBOKLCH works

sRGB → linear RGB → LMS cone response → Oklab → OKLCH. The full pipeline is described in Björn Ottosson's original 2020 specification.

When to use OKLCH

Use OKLCH when generating shade scales, contrast pairs, or color wheels — they'll feel evenly spaced where RGB-derived equivalents won't.

Convert any RGB on your Mac

Colorframe shows you RGB, OKLCH, and every other format side-by-side as you pick. Copy any with one click.