XYZ → OKLAB

Convert XYZ to OKLab

Generate CSS-ready color tokens in every format you need

Tip: Hover over the input to auto-paste from clipboard

Paste or type a color value

Auto-detects HEX, RGB, HSL, and 12+ formats

Frequently Asked Questions

Converting XYZ to OKLab Colors

Ship consistent design systems faster by translating design specs into production-ready CSS color tokens without copy-paste mistakes.

Example Conversion

Input (XYZ)

color(xyz 0.3135 0.3486 0.8341)

Output (OKLab)

oklab(0.700 -0.066 -0.128)

A
About XYZ

CIE XYZ color space (D65). This color format is commonly used in color-managed production and proofing tasks.

B
About OKLab

Perceptually uniform LAB. Converting to this format is useful for perceptually even gradients and accessibility tuning.

Common Use Cases

Building theme-switching tokens with HEX + HSL pairs
Ensuring gradient stops match marketing specs
Auditing brand palettes for accessible combinations
Migrating colors from design tools into CSS custom properties