Tied rank colours and character codes to the rank enum.