Function: rgbToHsl()
rgbToHsl(
rgb):HSL
Converts RGB values to HSL values.
Parameters
| Parameter | Type | Description | 
|---|---|---|
rgb | RGB | An object with r, g, and b properties. | 
Returns
An object with h, s, and l properties.
Throws
If the input is not a valid RGB object or if RGB values are out of range.
Defined in
conversions/components/hsl.ts:62