The dye intercalates between nucleic acid bases, allowing it to differentiate between DNA and RNA. When excited by blue or ultraviolet light, acridine orange emits different wavelengths based on its binding substrate. This unique property facilitates the identification of cellular components under a fluorescence microscope.