Color Coding Elements

Good day all

I have a multi select sub screen populated with elements according to animal IDs. I have a list of about 60 animals(elements) that form 9 family groups, I would like to color code each family in my sub screen. Is there perhaps a way to do this?