@dragonspark/chroma-kit
    Preparing search index...

    Function rgbToLCH

    • Converts an RGB color to the CIE LCh color space.

      This function first converts the RGB color to XYZ, then from XYZ to LCh. The LCh color space is a cylindrical representation of Lab, using lightness, chroma (saturation), and hue components.

      Parameters

      • color: RGBColor

        The RGB color to convert

      Returns LChColor

      The color in LCh space