Convert XYZ to OKLab
Design inclusive color palettes that pass WCAG every time
XYZ → OKLab
CIE XYZ color space (D65) → Perceptually uniform LAB
Live previews
Instant contrast checks against light and dark surfaces
Tailored for Accessibility
Design inclusive color palettes that pass WCAG every time
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
What color formats are supported?
We support HEX, RGB, HSL, HSV, HWB, LAB, LCH, OKLab, OKLCH, Display P3, Rec. 2020, ProPhoto RGB, Adobe RGB (1998), and XYZ color spaces with both D65 and D50 illuminants.
How accurate are the color conversions?
Our conversions use the industry-standard Color.js library, ensuring high accuracy across all color spaces. Wide gamut colors are properly handled with appropriate color space transformations.
Can I convert colors outside the sRGB gamut?
Yes! We support wide gamut color spaces like Display P3, Rec. 2020, and ProPhoto RGB. These can represent colors that standard sRGB monitors cannot display.
What's the difference between LAB and OKLab?
LAB is the traditional perceptually uniform color space, while OKLab is a newer, improved version that better matches human color perception. OKLab provides more intuitive results for color manipulation.
Converting XYZ to OKLab Colors
Make inclusive color decisions by checking contrast while you convert between formats and documenting pass/fail states for your team.
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.