text: Azo violet (Magneson I; p-nitrobenzeneazoresorcinol)  is an azo compound with the chemical formula CHNO. It is used commercially as a violet dye and experimentally as a pH indicator, appearing yellow below pH 11, and violet above pH 13. It also turns deep blue in the presence of magnesium salt in a slightly alkaline, or basic, environment. Azo violet may also be used to test for the presence of ammonium ions. The color of ammonium chloride or ammonium hydroxide solution will vary depending upon the concentration of azo violet used. Magneson I is used to test Be also; it produces an orange-red lake with Be(II) in alkaline medium.