Convert HEX color codes into LCH, the cylindrical form of CIELAB built from lightness, chroma, and hue.
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.
LCH output
#FF5733 becomes lch(61.03% 84.68 41.36). Lightness prints as a percentage, chroma as a plain number, and hue as a degree value from 0 to 360.
LCH vs HSL
HSL’s saturation and lightness are simple arithmetic on RGB channels, so two colors with the same HSL lightness can look noticeably different in brightness. LCH’s L and C come from the perceptually-driven CIELAB space, which is why it’s the color space browsers use for the lch() and oklch() interpolation modes in modern gradients.