Assigning specific color to dataview cell/link based on property

I have a list of NPCs and would like to have the cell populate in my dataview table with a specific color based on an NPC property. So WHERE contains(NPC, “Ally”) would be green, WHERE contains(NPC, “Opposition”) would be red, and WHERE contains(NPC, “Horror”) would be gray. Is this possible?