An acid dye is a dye which is a salt of a sulfuric, carboxylic or phenolic organic acid. The salts are often sodium or ammonium salts. Acid dyes are typically soluble in water and possess affinity for amphoteric fibers while lacking direct dyes' affinity for cellulose fibers. When dyeing, ionic bonding with fiber cationic sites accounts for fixation of colored anions in the dyed material. Acids are added to dyeing baths to increase the number of protonated amino-groups in fibers.
Some acid dyes are used as food colorants.
In the laboratory, home, or art studio, the acid used in the dye-bath is often vinegar (acetic acid) or citric acid. The uptake rate of the dye is controlled with the use of sodium chloride. In textiles, acid dyes are effective on protein fibers, i.e. animal hair fibers like wool, alpaca and mohair. They are also effective on silk. They are effective in dyeing the synthetic fiber nylon, but of minimum interest in dyeing any other synthetic fibers.
In staining during microscopic examination for diagnosis or research, acid dyes are used to color basic tissue proteins. In contrast, basic dyes are used to stain cell nuclei and some other acidic components of tissues.
Acid dyes are generally divided into three classes which depend on fastness requirements, level dyeing properties and economy. The classes overlap and generally depend on type of fiber to be colored as well as the process used.