Table of Contents

**@arolariu/components**


@arolariu/components / hslToHex

Variable: hslToHex()

const hslToHex: (hue, saturation, lightness) => string = convertHslToHexString

Defined in: lib/color-conversion-utilities.ts:157

Converts HSL color values to a hexadecimal color string.

Parameters

hue

number

Hue value (0-360)

saturation

number

Saturation percentage (0-100)

lightness

number

Lightness percentage (0-100)

Returns

string

Hex color code (e.g., "#06b6d4")

Deprecated

Use convertHslToHexString instead