Convert HEX color codes into CIELAB, a color space built around how the human eye perceives lightness and color difference rather than how a screen mixes red, green, and blue light.
Input formats
Provide colors as 3, 4, 6, or 8-digit hex codes, with or without a leading #. Each line is parsed independently in batch mode.
LAB output
#FF5733 becomes lab(61.03% 63.55 55.96). The first number is lightness as a percentage; the second and third are the a and b axes, printed as plain numbers rather than percentages.
Why LAB exists
RGB and HEX describe how a display mixes light, not how far apart two colors look to a human eye. CIELAB was built specifically so that a given numeric gap between two colors tracks the perceived gap far more consistently, which is why it shows up in color-matching and print workflows.