@tempots/color

rgb2hsl() function

Converts an RGB color to HSL color.

Signature:

rgb2hsl: (rgb: RGB) => HSL

Parameters

Parameter

Type

Description

rgb

RGB

The RGB color to convert.

Returns: HSL

The corresponding HSL color.