Search…
⌃K
Links

color

To return or convert to a color value
With this function, you can assign a color value to a color or formula field. You also can get the color value of a selected option in a choice field.
To return a specific color, you can either pass a string referencing the color or 3 (up to 4) numbers referring to the RGB/RGBA colors.
color() accepts any valid HTML/CSS color identifier.

Syntax

color(string)
color(number, number, number)
color(number, number, number, number)
color(choice)

Return

color

Examples

1
color("blue")
Result: Blue, but not the Ninox blue.
​
1
color("#4970FF")
Result: The Ninox blue
​
​
1
color(73, 112, 255)
Result: The Ninox blue in RGB code
​
1
color(73, 112, 255, 0.5)
Result: The Ninox blue in RGB code with the opacity set to 50%
​
1
color(Status)
Result: Returns the color of the selected option of the Status choice field.

See also

​icon, which returns an icon.
​styled, which converts a given string to a styled object.
Last modified 3mo ago