Small molecule agents work by binding to specific cellular components such as proteins, nucleic acids, and lipids. This binding can result in a color change visible under a microscope, making it easier to identify and differentiate between different types of cells and tissues. For example, hematoxylin binds to nucleic acids, staining cell nuclei blue, while eosin binds to proteins, staining cytoplasmic components pink.