The color object is returned by color type settings and has the following attributes:
color.alpha
Returns the alpha component of the color, a decimal number between 0 and 1.
color.blue
Returns the blue component of the color, a number between 0 and 255.
color.green
Returns the green component of the color, a number between 0 and 255.
color.hue
Returns the hue component of the color, a number between 0 and 360.
color.lightness
Returns the lightness component of the color, a number between 0 and 100.
color.red
Returns the red component of the color, a number between 0 and 255.
color.saturation
Returns the saturation component of the color, a number between 0 and 100.
More properties
VersaCommerce also provides these properties on the color object:
| Properties | Returns |
|---|---|
chroma, rgb, rgba, oklch, oklcha, color_space |
Additional color representations and components |