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
color("blue")
Result: Blue, but not the Ninox blue
color("#4970FF")color("#4970FF")
Result: The Ninox blue
color(73, 112, 255)color(73, 112, 255)
Result: The Ninox blue in RGB code
color(73, 112, 255, 0.5)color(73, 112, 255, 0.5)
Result: The Ninox blue in RGB code with the opacity set to 50%
color(Status)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.