Sodium hydroxide is used to detect the presence of flavonoids. About 5 mg of a compound is dissolved in water, warmed, and filtered. 10% aqueous sodium hydroxide is added to 2 ml of this solution. This produces a yellow coloration. A change in color from yellow to colorless on addition of dilute hydrochloric acid is an indication for the presence of flavonoids.