Instantly convert XYZ to LAB and LAB to XYZ.
Translate XYZ color values to the LAB color space. This page follows the same polished product structure as the CSS converter tools while adapting the live experience to real color previews, format channels, and production-ready output.
Base color
Use the shared live preview as the anchor point for both color formats.
Live preview
Shared source for every active conversion field on this page.
Conversion
Edit either side, copy any result, or swap the displayed direction.
XYZ
LAB
xyz(0.921, 0.881, 2.312)
lab(7.96, 3.32, -14.07)
Canonical page shared by this workflow: XYZ to LAB. The reverse direction is still available in the same interface via the swap control.
Current color spectrum
A responsive tonal strip generated from the active color preview.
#CFD1D4
#93979F
#0F172A
#0B1120
#080C15
Current conversion
xyz(0.921, 0.881, 2.312)
lab(7.96, 3.32, -14.07)
Live swatch
#0F172A
rgb(15, 23, 42)
Fast handoff formats
#0F172A
rgb(15, 23, 42)
hsl(222.2, 47.4%, 11.2%)
Why this matters
Translate one live color between engineering, design, print, and video-friendly models without losing track of its visual appearance.
Step 1: Define the source format precisely
Enter the source color using the channels of XYZ. The tool keeps the live preview synchronized so you can validate the color visually while editing the numeric or textual values.
Step 2: Normalize the color through the internal RGB preview
Every supported format is normalized into a single live screen preview. That shared representation keeps the conversion stable while preserving the same visual color across both sides of the interface.
Step 3: Read the target format and copy the output
Once the live preview is resolved, the target format updates immediately. Copy the generated value directly into your design tool, frontend codebase, or production handoff documentation.
| Preview | XYZ | LAB |
|---|---|---|
#0F172A | xyz(0.921, 0.881, 2.312) | lab(7.96, 3.32, -14.07) |
#2563EB | xyz(20.215, 15.313, 80.471) | lab(46.06, 30.96, -73.83) |
#7C3AED | xyz(25.107, 13.425, 81.373) | lab(43.4, 64.8, -79.09) |
#10B981 | xyz(21.523, 36.39, 26.654) | lab(66.82, -52.21, 17.68) |
#F59E0B | xyz(49.948, 43.895, 6.159) | lab(72.16, 23.49, 75.22) |
#EF4444 | xyz(38.711, 22.908, 7.851) | lab(54.98, 64.69, 39.13) |
Understanding XYZ
XYZ is a foundational device-independent color model often used as an intermediate step for color science, format translation, and accurate gamut-aware workflows.
Understanding LAB
LAB is a perceptual color space designed to align more closely with human vision, which makes it valuable for color comparison, adjustment, and higher-level color analysis.
Why convert XYZ and LAB?
- Design consistency: Keep one visual color aligned across UI mockups, code, and production deliverables.
- Workflow translation: Move between web-native, print-oriented, and color-science formats without manually rebuilding the color each time.
- Cleaner handoff: Give design, brand, and engineering teams the exact representation they need for the same color decision.