Skip to content

Function: lighten() ​

ts
function lighten(hex, amount): string;

Lightens a hex color by increasing its HSL lightness by amount percent.

Parameters ​

ParameterType
hexstring
amountnumber

Returns ​

string

Example ​

ts
lighten('#336699', 20) // => '#5588bb'

Since ​

1.0.0

Released under the MIT License.