Give attendees the color from group in membership


Is it possible to give the names of the attendees on an event the same color as the membership group they assigned to in Membership 2?

For example: Person A is assigned to a membership group that has the color green. Therefore, his name is green in the attendee list.

Maybe there is a script that adds a class to the name of the attendee so we can add a color in the CSS to this class? I don't know...

Hopefully you guys can help me out again with my question.