Lab to HEX Converter
CIE Lab in, HEX color code out — with the working shown.
To convert Lab to HEX, normalise the input, convert Lab back to RGB, write out the HEX value, then check the gamut. For example, lab(55.09% 17.34 -65.86) in Lab is #2f81f7 in HEX.
This is a free Lab to HEX converter. Type or paste any CIE L*a*b* into the field above and the HEX value updates as you type, along with every other notation the web understands. HEX is a six-digit hexadecimal number, two digits per channel, written with a leading #.
Conversions run entirely in your browser using the same color engine as the rest of the site: values round-trip through linear sRGB and CIE XYZ rather than through an approximation, so what you copy is accurate to the last digit the format can carry.
How to convert Lab to HEX
- Normalise the input. Read the Lab value and scale each component into the 0–1 range the maths expects.
- Convert Lab back to RGB. Lab is not the display's native model, so the first move is always back to red, green and blue.
- Write out the HEX value. Convert back through sRGB and format the result as HEX.
- Check the gamut. Clamp anything that falls outside what an sRGB display can show, so the value you copy is the value you get.
Worked example: lab(55.09% 17.34 -65.86) converts to #2f81f7. That color is Dodger Blue, and the tool above shows each intermediate step for whatever value you enter.
Common Lab to HEX values
The twenty colors people look up most often, converted from Lab to HEX. Every row is computed by the same engine as the tool above.
| Color | Lab | HEX |
|---|---|---|
| White | lab(100% 0 0) | #ffffff |
| Black | lab(0% 0 0) | #000000 |
| Red | lab(53.24% 80.09 67.2) | #ff0000 |
| Lime | lab(87.73% -86.18 83.18) | #00ff00 |
| Blue | lab(32.3% 79.19 -107.86) | #0000ff |
| Yellow | lab(97.14% -21.55 94.48) | #ffff00 |
| Cyan | lab(91.11% -48.09 -14.13) | #00ffff |
| Magenta | lab(60.32% 98.23 -60.82) | #ff00ff |
| Silver | lab(77.7% 0 0) | #c0c0c0 |
| Gray | lab(53.59% 0 0) | #808080 |
| Maroon | lab(25.54% 48.05 38.06) | #800000 |
| Olive | lab(51.87% -12.93 56.67) | #808000 |
| Green | lab(46.23% -51.7 49.9) | #008000 |
| Purple | lab(29.78% 58.93 -36.49) | #800080 |
| Teal | lab(48.25% -28.85 -8.48) | #008080 |
| Navy | lab(12.97% 47.5 -64.7) | #000080 |
| Orange | lab(74.94% 23.93 78.95) | #ffa500 |
| Pink | lab(83.59% 24.14 3.33) | #ffc0cb |
| Gold | lab(86.93% -1.92 87.13) | #ffd700 |
| Crimson | lab(47.04% 70.92 33.6) | #dc143c |
Lab and HEX, briefly
Lab is a device-independent, perceptually organized space with a lightness axis and two opponent color axes. Valid range: L 0–100, a and b roughly −128 to 127.
HEX is a six-digit hexadecimal number, two digits per channel, written with a leading #. Valid range: #000000 to #ffffff.
Frequently asked questions
How do you convert Lab to HEX?
1. Read the Lab value and scale each component into the 0–1 range the maths expects. 2. Lab is not the display's native model, so the first move is always back to red, green and blue. 3. Convert back through sRGB and format the result as HEX. 4. Clamp anything that falls outside what an sRGB display can show, so the value you copy is the value you get. The converter on this page does all of it as you type, and shows the working underneath.
What is lab(53.24% 80.09 67.2) in HEX?
Pure red, lab(53.24% 80.09 67.2), is #ff0000 in HEX. There is a table of twenty common colors converted to HEX further up this page.
What is lab(55.09% 17.34 -65.86) in HEX?
lab(55.09% 17.34 -65.86) converts to #2f81f7. It is a dodger blue, and you can paste any other value into the field at the top of the page to convert it.
Is Lab to HEX conversion lossless?
Within sRGB, yes — converting to HEX and back returns the value you started with. The only rounding happens when a component is written out to a fixed number of decimal places.
Can I use HEX directly in CSS?
Yes. #2f81f7 is valid CSS and works in every current browser.
Does this Lab to HEX converter support transparency?
Alpha is preserved wherever the target notation can carry it — eight-digit hex, rgb() / a, hsl() / a and the modern CSS spaces all round-trip an alpha channel. CMYK has no alpha, so it is dropped there.
Is my color data sent anywhere?
No. Every conversion on this site runs in your browser with no network request, no account and no analytics. You can disconnect and it keeps working.