Lactose-fermenting bacteria produce acid from lactose fermentation, causing a drop in pH. The pH indicator, neutral red, changes color to pink/red in the presence of acid, resulting in pink/red colonies. Non-lactose fermenters do not produce acid and form colorless colonies.