Function hslToRgb

  • Converts HSL values to RGB values.

    Parameters

    • hsl: HSL

      An object with h, s, and l properties.

    Returns RGB

    An object with r, g, and b properties.

    If the input is not a valid HSL object or if HSL values are out of range.