Methyl violet 10B has six methyl groups. It is known in medicine as Gentian violet (or crystal violet or pyoctanin(e)) and is the active ingredient in a Gram stain, used to classify bacteria. It is used as a pH indicator, with a range between 0 and 1.6. The protonated form (found in acidic conditions) is yellow, turning blue-violet above pH levels of 1.6.
Methyl violet 10B inhibits the growth of many Gram positive bacteria, except streptococci. When used in conjunction with nalidixic acid (which destroys gram-negative bacteria), it can be used to isolate the streptococci bacteria for the diagnosis of an infection.