LAB to RGB Converter
Enter CIE LAB (L*, a*, b*) values and instantly get the equivalent sRGB (0–255) color with a live preview swatch.
CIE LAB Input
53.39
80.11
67.20
#D50032
This LAB color is outside the sRGB gamut. RGB values have been clamped to 0–255.
RGB Output
Conversion Steps
- 1 LAB → XYZ (D65): X=0.3082, Y=0.1693, Z=0.0459
- 2 XYZ → Linear RGB: Rl=0.6500, Gl=−0.0891, Bl=0.0372
- 3 Linear RGB → sRGB (gamma): R=0.834, G=0.000, B=0.196
- 4 Scale & clamp to 0–255: R=213, G=0, B=50
Copied!
Summary
Enter CIE LAB (L*, a*, b*) values and instantly get the equivalent sRGB (0–255) color with a live preview swatch.
How it works
- Enter L* (0–100), a* (−128 to +127), and b* (−128 to +127) using the number inputs or sliders.
- L*, a*, b* are converted to XYZ tristimulus values using the inverse CIE f() function and D65 reference white (Xn=0.95047, Yn=1.00000, Zn=1.08883).
- XYZ is multiplied by the inverse sRGB matrix to produce linear RGB channel values.
- Linear RGB is gamma-encoded with the sRGB transfer function (IEC 61966-2-1) to produce non-linear sRGB in the 0–1 range.
- Values are scaled to 0–255 and clamped, then the HEX code is derived from the clamped integers.
- A live color swatch previews the resulting color; out-of-gamut inputs are clamped to the nearest displayable color.
Use cases
- Translate perceptual LAB color specifications into screen-displayable RGB values.
- Convert ICC profile LAB measurements into usable web color codes.
- Verify that a LAB color is within the sRGB gamut before using it on a web page.
- Generate HEX codes from CIE LAB brand color definitions.
- Bridge color science workflows (spectrophotometry, ΔE calculations) with CSS/HTML color values.
- Quickly estimate the RGB appearance of a LAB color from a color chart or research paper.
- Cross-reference CIE LAB paint or ink specifications with digital sRGB equivalents.
- Build color palettes starting from perceptually uniform LAB steps.
Frequently Asked Questions
Related tools
Last updated: 2026-05-28 ·
Reviewed by Nham Vu