color
A color from a color
setting.
Properties
The alpha component of the color, which is a decimal number between 0.0 and 1.0.
The chroma component of the color, which is a decimal number between 0.0 and 0.5.
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, 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.
{
"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
}
{
"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 }}
{{ settings.colors_accent_2 }}
{
"settings": {
"colors_accent_2": "#334fb4"
}
}
Output
#334fb4
Was this section helpful?