Overview

Represents a color in a ColorPalette.

Properties

palette_color.name

Returns the name of the color as configured in the admin. May be empty.

palette_color.value

Returns the color value — #rrggbb format for RGB colors and cmyk(c,m,y,k) format for CMYK colors.

palette_color.value_rgb

Returns the color value in RGB format. If the original value is in CMYK format, it converts it to a RGB equivalent suitable for use in CSS.