I’m actually not sure what exactly your question is. But if you mean how you can get the color of someone’s name then you have to send TWITCHCLIENT 3 as a raw message to Twitch’s IRC server after connecting. Now, you’ll receive private messages from “jtv” right before the actual chat message looking like that:
USERCOLOR someusername #1E90FF
You can simply parse the color code.
Other Twitchclients may also work but they’re not documented anywhere as far as I know.