Safranin works by binding to the acidic components of tissues. It is especially effective in staining acidic polysaccharides, glycosaminoglycans, and nucleic acids. When applied to a tissue sample, safranin penetrates the cells and binds to their acidic components, turning them red or pink. This coloration helps in distinguishing different cellular structures and is particularly useful in identifying cell nuclei, cartilage, and other components.