Convert standard RGB color definitions into LCH, the cylindrical form of CIELAB built from lightness, chroma, and hue.
Input formats
Provide colors using the standard rgb(r, g, b) syntax with channel values ranging from 0 to 255. Each line is parsed independently in batch mode.
LCH output
rgb(255, 87, 51) 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.
Isolating hue or lightness
Because LCH separates lightness, chroma, and hue into independent axes, changing just the hue number rotates a color around the color wheel while keeping how light and how vivid it looks unchanged, something RGB’s three intertwined channels can’t do directly.