use 3 character color codes instead of 6 where appropriate