There are multiple ways to achieve this, you should think in the direction of having a color attribute linked to an Event Type which links to your Event Entity. This color attribute can be set in the calendar widget config.
One way would be to create an EventType entity, in which you create your enumeration attribute, description and color. You associate this entity to your Event entity which has details like date etc.
E.g.