These docs are for v1.0. Click to read the latest docs for v1.2.

DARKEN

Creates a new color from the specified color by decreasing the lightness in the HSL color space.

Syntax

=DARKEN(color, amount)

Arguments

ArgumentTypeDescription
colorColorThe color to darken.
amountNumberThe percentage amount to darken the given color, from 0 to 1.

Examples

=DARKEN("#ffffff", 0.5)#808080ff
Darkens the color white by 50%.

=DARKEN(RGB(0, 255, 0), 0.2)#009900ff
Darkens the color green by 20%.