Basic dyes carry a positive charge; opposite charges attract, so these dyes are drawn to the many negatively charged components of cells, including nucleic acid and many proteins. Acidic dyes carry a negative charge and are repelled by those cell components.