Skip to main content

color

A color from a color setting.


Tip

Use color filters to modify or extract properties of a color object.


Properties

The alpha component of the color, which is a decimal number between 0.0 and 1.0.

The blue component of the color, which is a number between 0 and 255.

The chroma component of the color, which is a decimal number between 0.0 and 0.5.

Anchor to
color_space

The color space of the color. Returns 'srgb' or 'oklch'

The green component of the color, which is a number between 0 and 255.

The hue component of the color, which is a number between 0 and 360.

The lightness component of the color, which is a number between 0 and 100.

The lightness, chroma, and hue values of the color, represented as a space-separated string.

The lightness, chroma, hue and alpha values of the color, represented as a space-separated string, with a slash before the alpha channel.

The red component of the color, which is a number between 0 and 255.

The red, green, and blue values of the color, represented as a space-separated string.

The red, green, blue, and alpha values of the color, represented as a space-separated string, with a slash before the alpha channel.

The saturation component of the color, which is a number between 0 and 100.

{
"alpha": 1,
"blue": 180,
"chroma": 0.16,
"color_space": "srgb",
"green": 79,
"hue": 227,
"lightness": 45,
"oklch": "47% 0.16 268",
"oklcha": "47% 0.16 268 / 1.0",
"red": 51,
"rgb": "51 79 180",
"rgba": "51 79 180 / 1.0",
"saturation": 56
}
Anchor to Referencing color settings directly

Referencing color settings directly

When a color setting is referenced directly, the hexidecimal color code is returned.

{{ settings.colors_accent_2 }}

Output

#334fb4
Was this section helpful?