TXT · Text & Data tools

LAB to HEX Converter

Active color#000000

lab(0% 0 0)

LAB Input
Hex Output
1Active Line0Valid Items
Go To Full Color Converter

Convert CIELAB color values into a hexadecimal color code your browser and CSS already understand.

Input formats

Provide colors using lab(L a b) syntax, with lightness as a percentage from 0% to 100% and the a and b axes as plain numbers. Each line is parsed independently in batch mode.

Hex output

The output is formatted as a 6-digit hex code in uppercase (#RRGGBB). lab(61.03% 63.55 55.96) becomes #FF5733.

Out-of-gamut values

CIELAB can describe colors no consumer screen can reproduce. When a and b push a color outside the sRGB gamut, the conversion clamps each RGB channel to the 0-255 range, which can shift the result slightly from the color a print workflow intended.

Frequently Asked Questions

lab(L a b) with L as a percentage from 0% to 100% and a/b as plain numbers, such as lab(61.03% 63.55 55.96). Paste one color per line for batch conversion.

No. CIELAB covers a wider range of colors than a screen can display. Values with extreme a or b combined with high or low lightness fall outside sRGB and get clamped to the nearest representable RGB channel values.

Rounding L, a, and b to two decimal places, and clamping any out-of-gamut result to the 0-255 RGB range, can shift the reconstructed hex code by a small amount from the exact source color.

Try one of our format-specific converters below

Full Color Converter tool

Explore Our Tools

Browse all tools