Random color as background in Loop

Is it possible to set a RANDOM color from the color palette as a background in a Query Loop? Just using Bricks, rather than custom code?

The point is to cycle through 5 colors of a palette - but different colors on each post built via a template.

Or to set a conditional value per taxonomy on an ELEMENT - I see it’s possible to set a conditional by taxonomy on the overall template, but not per element (section, col, etc)

I solved this by creating a custom field for the client to choose a color from a pre-determined array in the backend per post, then applying that custom field as an attribute, and creating global css to look for that attribute and apply the necessary styles.