 Most of the clone troopers wear plain white armor; some of the more  senior troops armor has added colored trim on the helmet and arms.  The colors denote rank as follows: Green = sergeants, Blue =  lieutenants, Red = captains, Yellow = commanders (the Jedi serve as  the Clones generals). Note that pilots also wear yellow trim, but  their armor design differs from other Clones.