Ancient Roman candidates for office would put on white togas, as a form of purity and honesty signalling, and to stand out better in the crowd.
The garment was called the toga candida, from Latin candidus, 'dressed in white', and from this they were called candidati, 'ones dressed in white', which has come down more or less unchanged to Modern English, although the meaning was widened slightly.
This is well attested, for example an early etymologist Sextus Pompeius Festus writing in the 2nd century CE has this to say
Candidati dicebantur, quod togam candidam induebant.
"They were called candidates because they put on a white toga."
De Verborum Significatu, "On the meaning of words"