(a) The two components
In an azo dye, the diazonium ion supplies one aryl group and both nitrogen atoms of the –N=N– link, and the coupling partner supplies the other aryl group, attacked at its para position.
- The ring carrying –SO3− came from the diazonium salt, so the amine that was diazotised is sulphanilic acid (4-aminobenzenesulphonic acid), p-H2NC6H4SO3H.
- The ring carrying –N(CH3)2 is the coupling partner: N,N-dimethylaniline, C6H5N(CH3)2.
(b) Equations
Diazotisation (273–278 K):
p-H2NC6H4SO3H+NaNO2+2HCl→p-HO3SC6H4N2+Cl−+NaCl+2H2O

Coupling at the para position of N,N-dimethylaniline:
p-HO3SC6H4N2+Cl−+C6H5N(CH3)2→p-HO3SC6H4N=NC6H4N(CH3)2-p+HCl

Neutralising the product with NaOH gives the sodium salt, methyl orange.
(c) Para coupling and the pH window
The diazonium ion is a weak electrophile and attacks only a strongly activated ring. The lone pair of the –N(CH3)2 nitrogen is delocalised into the ring and makes the ortho and para carbons electron-rich. The ortho positions are crowded by the two methyl groups, so attack occurs at the para carbon.
This activation needs the free lone pair. In a strongly acidic solution, N,N-dimethylaniline is protonated to C6H5NH+(CH3)2. That nitrogen has no lone pair, its positive charge withdraws electrons from the ring, and the deactivated ring no longer reacts with the weak diazonium electrophile, so coupling almost stops. A mildly acidic medium keeps enough of the amine unprotonated to couple, while still being acidic enough to keep the diazonium salt intact.