HSVtoHSL

Color
stable

Convert an HSV colour (hue, saturation, value) to HSL (hue, saturation, lightness).

API

Signature

Full TypeScript signature sourced from the util file.

typescript

API

Parameters

Input parameters accepted by this util.

hsva
required
THSVA
Colour in HSV space with optional alpha. h in [0, 360], s and v in [0, 1], a in [0, 1].

API

Return value

The value returned by this util.

Equivalent colour in HSL space. h in [0, 360], s and l in [0, 1], a preserved.

Usage

Examples

Ready-to-paste usage snippets.

Convert HSV to HSL

typescript