Add logic to check if team coluors are light/dark

Chooses the correct text colour based on the team colour so the text
will be legible.
Typos and obj name fix
Rename test to match new object name
Merge pull request #3615 from guardian/fix-stats-text-colours

Add logic to check if team coluors are light/dark