Set different colors to the tab

I would like to have a option in the tab menu, where i can set a color for the tab from a list of colors. This helps to categorize the huge number of tabs.