Gram staining
Gram-positive bacteria have a thick peptidoglycan layer in their cell wall, which retains the crystal violet during Gram staining, resulting in a purple color. Gram-negative bacteria have a thin peptidoglycan layer which does not retain the crystal violet, so when safranin is added during the process, they stain red.