This is probably a silly question, but I would use this for a custom chat gui.
Wasn't sure when I read your question, so I checked myself.
There is a property in play called "TeamColor" and I'm assuming you can use that knowledge to add it into your custom chat GUI. IF not, just tell me.