The stuff you're thinking about is called Blu-Kote...and the purple color comes from 'gentian violet'. It's also been used , in a milder form, for babies who develop 'thrush' in their mouths.
BTW...Blu-Kote is reported to be one of the few OTC items that will 'kill off' tetnus 'germies'.