I hadn't noticed, but could the different colours denote the lap the cars are on? For example, cars on the same lap as you might be red, while cars that have been lapped are blue, to help with multi-class racing. The OtterHUD in R3E uses a colour scheme like that in it's relative widget. (Though not on the minimap.)