It contains bile salts (to inhibit most Gram-positive bacteria, except Enterococcus and some species of Staphylococcus), crystal violet dye (which also inhibits certain Gram-positive bacteria), neutral red dye (which stains microbes fermenting lactose), lactose and peptone.