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

RGB Output

Conversion Steps

  1. 1 LAB → XYZ (D65): X=0.3082, Y=0.1693, Z=0.0459
  2. 2 XYZ → Linear RGB: Rl=0.6500, Gl=−0.0891, Bl=0.0372
  3. 3 Linear RGB → sRGB (gamma): R=0.834, G=0.000, B=0.196
  4. 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

  1. Enter L* (0–100), a* (−128 to +127), and b* (−128 to +127) using the number inputs or sliders.
  2. 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).
  3. XYZ is multiplied by the inverse sRGB matrix to produce linear RGB channel values.
  4. Linear RGB is gamma-encoded with the sRGB transfer function (IEC 61966-2-1) to produce non-linear sRGB in the 0–1 range.
  5. Values are scaled to 0–255 and clamped, then the HEX code is derived from the clamped integers.
  6. A live color swatch previews the resulting color; out-of-gamut inputs are clamped to the nearest displayable color.

Use cases

Frequently Asked Questions

Related tools

Last updated: 2026-05-28 · Reviewed by Nham Vu