@tempots/color

srgb2hsl() function

Converts an SRGB color value to HSL color space.

Signature:

srgb2hsl: (srgb: SRGB) => HSL

Parameters

Parameter

Type

Description

srgb

SRGB

The SRGB color value to convert.

Returns: HSL

The corresponding HSL color value.