How Aniline Becomes the Colour in Your Clothes
Compare the basic strength of aliphatic and aromatic amines, use the carbylamine and Hinsberg tests, explain substitution in aniline and why Friedel-Crafts fails, and turn benzenediazonium chloride into halides, phenols and azo dyes.
What makes amines basic, and why do they matter for dyes?
The lone pair on nitrogen lets amines accept protons, react with acids and attack electrophiles. Aniline, the simplest aryl amine, can also be turned into diazonium salts — reactive intermediates behind the bright colours of many dyes.
This part covers the basic strength of amines, their reactions and the Hinsberg test, substitution in aniline, and diazonium salts.
This part covers the basic strength of amines, their reactions and the Hinsberg test, substitution in aniline, and diazonium salts.
How does the basic strength of aliphatic and aromatic amines compare in the gas phase and in water?
Amines are bases because nitrogen's lone pair accepts a proton; electron-releasing alkyl groups increase basicity, so in the gas phase tertiary > secondary > primary > ammonia, but in water solvation and steric effects change that order, and aryl amines are much weaker bases because their lone pair is delocalised into the ring.
Measuring basicity: a smaller p means a stronger base.
Gas phase — only the inductive effect matters:
In water, three factors combine:
- Inductive effect — more alkyl groups push more electron density onto nitrogen
- Solvation — ammonium ions with more N–H bonds are stabilised better by hydrogen bonding with water
- Steric hindrance — bulky groups crowd the nitrogen
For methyl amines: (CH)NH > CHNH > (CH)N > NH.
Aryl amines. Aniline's lone pair is shared with the ring, so aniline (p) is a far weaker base than methylamine (p).
Worked example. The ratio of base strengths is
so methylamine is a million times stronger as a base than aniline.
An everyday example. Many medicines are sold as amine hydrochloride salts, which dissolve in water far better than the free bases.
The substance. Tertiary amines are not the strongest bases in water despite having the most alkyl groups — their ions are poorly solvated.
Measuring basicity: a smaller p means a stronger base.
Gas phase — only the inductive effect matters:
In water, three factors combine:
- Inductive effect — more alkyl groups push more electron density onto nitrogen
- Solvation — ammonium ions with more N–H bonds are stabilised better by hydrogen bonding with water
- Steric hindrance — bulky groups crowd the nitrogen
For methyl amines: (CH)NH > CHNH > (CH)N > NH.
Aryl amines. Aniline's lone pair is shared with the ring, so aniline (p) is a far weaker base than methylamine (p).
Worked example. The ratio of base strengths is
so methylamine is a million times stronger as a base than aniline.
An everyday example. Many medicines are sold as amine hydrochloride salts, which dissolve in water far better than the free bases.
The substance. Tertiary amines are not the strongest bases in water despite having the most alkyl groups — their ions are poorly solvated.
What are the reactions of amines, and how does the Hinsberg test distinguish primary, secondary and tertiary amines?
Amines act as nucleophiles in alkylation and acylation, primary amines give foul-smelling isocyanides in the carbylamine test, nitrous acid treats aliphatic and aromatic primary amines differently, and the Hinsberg test separates the three classes by how their products with benzenesulphonyl chloride behave in alkali.
Key reactions:
- Alkylation — with alkyl halides, eventually giving quaternary salts
- Acylation — primary and secondary amines form amides with acid chlorides or anhydrides; aniline gives acetanilide
- Carbylamine reaction — primary amines, aliphatic or aromatic, with CHCl and alcoholic KOH give isocyanides with an offensive smell
- Nitrous acid — aliphatic primary amines give alcohols and N gas; aniline at to K gives benzenediazonium chloride
Hinsberg test with benzenesulphonyl chloride:
- Primary — the sulphonamide still has an acidic N–H, so it dissolves in alkali
- Secondary — the sulphonamide has no N–H and is insoluble in alkali
- Tertiary — no reaction
Worked example. An amine CHN does not react with benzenesulphonyl chloride and gives no carbylamine smell. It has no N–H at all, so it must be tertiary: trimethylamine, (CH)N.
An everyday example. Paracetamol contains an amide group formed by acylating an aryl amine, the same kind of reaction that makes acetanilide.
The substance. Acylation tames an amine's reactivity, which is why aniline is often acylated before further substitution.
Key reactions:
- Alkylation — with alkyl halides, eventually giving quaternary salts
- Acylation — primary and secondary amines form amides with acid chlorides or anhydrides; aniline gives acetanilide
- Carbylamine reaction — primary amines, aliphatic or aromatic, with CHCl and alcoholic KOH give isocyanides with an offensive smell
- Nitrous acid — aliphatic primary amines give alcohols and N gas; aniline at to K gives benzenediazonium chloride
Hinsberg test with benzenesulphonyl chloride:
- Primary — the sulphonamide still has an acidic N–H, so it dissolves in alkali
- Secondary — the sulphonamide has no N–H and is insoluble in alkali
- Tertiary — no reaction
Worked example. An amine CHN does not react with benzenesulphonyl chloride and gives no carbylamine smell. It has no N–H at all, so it must be tertiary: trimethylamine, (CH)N.
An everyday example. Paracetamol contains an amide group formed by acylating an aryl amine, the same kind of reaction that makes acetanilide.
The substance. Acylation tames an amine's reactivity, which is why aniline is often acylated before further substitution.
How does aniline undergo bromination, nitration and sulphonation, and why does it fail in Friedel-Crafts reactions?
**The –NH group strongly activates the ring towards ortho and para attack, so aniline brominates at once to 2,4,6-tribromoaniline; nitration and sulphonation are complicated because acid protonates –NH; and Friedel-Crafts reactions fail because aniline binds the AlCl catalyst.
Bromination. Bromine water gives a white precipitate of 2,4,6-tribromoaniline** immediately. For a single substitution, convert aniline to acetanilide first, brominate to p-bromoacetanilide, then hydrolyse to p-bromoaniline.
Nitration. Direct nitration oxidises some aniline to tarry products, and strong acid turns much of it into the anilinium ion, which directs to the meta position. Protecting –NH as acetanilide gives mainly the para nitro product.
Sulphonation. Aniline with conc. HSO forms anilinium hydrogensulphate, which on heating to to K gives sulphanilic acid.
Friedel-Crafts. Aniline, a Lewis base, donates its lone pair to AlCl, placing a positive charge on nitrogen that deactivates the ring.
Worked example. Direct nitration gives para, meta and ortho nitroanilines in roughly parts. Almost half is meta, because much of the aniline reacts as the meta-directing anilinium ion.
An everyday example. Sulphanilic acid is used to make sulpha drugs and azo dyes.
The substance. **Protecting –NH as an amide is the key trick** — it moderates activation and prevents protonation, so single para products form.
Bromination. Bromine water gives a white precipitate of 2,4,6-tribromoaniline** immediately. For a single substitution, convert aniline to acetanilide first, brominate to p-bromoacetanilide, then hydrolyse to p-bromoaniline.
Nitration. Direct nitration oxidises some aniline to tarry products, and strong acid turns much of it into the anilinium ion, which directs to the meta position. Protecting –NH as acetanilide gives mainly the para nitro product.
Sulphonation. Aniline with conc. HSO forms anilinium hydrogensulphate, which on heating to to K gives sulphanilic acid.
Friedel-Crafts. Aniline, a Lewis base, donates its lone pair to AlCl, placing a positive charge on nitrogen that deactivates the ring.
Worked example. Direct nitration gives para, meta and ortho nitroanilines in roughly parts. Almost half is meta, because much of the aniline reacts as the meta-directing anilinium ion.
An everyday example. Sulphanilic acid is used to make sulpha drugs and azo dyes.
The substance. **Protecting –NH as an amide is the key trick** — it moderates activation and prevents protonation, so single para products form.
How is benzenediazonium chloride prepared, and how is it used in Sandmeyer, Gattermann and azo coupling reactions?
**Benzenediazonium chloride is made by treating aniline with NaNO and HCl at to K; its –N group can be replaced by Cl, Br, CN, I, F, H, OH or NO, and it couples with phenols and aryl amines to form brightly coloured azo compounds.
Diazotisation:**
The salt is used at once because it decomposes on warming.
**Replacement with loss of N:
- Sandmeyer — CuCl/HCl, CuBr/HBr or CuCN/KCN give chloro-, bromo- or cyanobenzene
- Gattermann — copper powder with HCl or HBr gives chloro- or bromobenzene
- KI gives iodobenzene; HBF then heat gives fluorobenzene
- HPO or ethanol gives benzene; warm water gives phenol
Azo coupling. With phenol in alkali the salt gives orange p-hydroxyazobenzene; with aniline it gives yellow p-aminoazobenzene, the –N=N– group linking the rings at the para position.
Worked example.** Direct bromination of benzene cannot give 1,3,5-tribromobenzene. Instead, brominate aniline to 2,4,6-tribromoaniline, diazotise, and replace –N by H using HPO — the bromines, once ortho and para to –NH, end up meta to one another.
An everyday example. Many yellow, orange and red dyes on printed cotton fabrics are azo dyes made by diazonium coupling.
The substance. Diazonium salts place groups where direct substitution cannot, because –NH directs first and then disappears.
Diazotisation:**
The salt is used at once because it decomposes on warming.
**Replacement with loss of N:
- Sandmeyer — CuCl/HCl, CuBr/HBr or CuCN/KCN give chloro-, bromo- or cyanobenzene
- Gattermann — copper powder with HCl or HBr gives chloro- or bromobenzene
- KI gives iodobenzene; HBF then heat gives fluorobenzene
- HPO or ethanol gives benzene; warm water gives phenol
Azo coupling. With phenol in alkali the salt gives orange p-hydroxyazobenzene; with aniline it gives yellow p-aminoazobenzene, the –N=N– group linking the rings at the para position.
Worked example.** Direct bromination of benzene cannot give 1,3,5-tribromobenzene. Instead, brominate aniline to 2,4,6-tribromoaniline, diazotise, and replace –N by H using HPO — the bromines, once ortho and para to –NH, end up meta to one another.
An everyday example. Many yellow, orange and red dyes on printed cotton fabrics are azo dyes made by diazonium coupling.
The substance. Diazonium salts place groups where direct substitution cannot, because –NH directs first and then disappears.
Exam tip
What earns full marks on reactions of amines and diazonium salts?
**State the temperature, to K, in every diazotisation answer, and name the copper reagent for Sandmeyer reactions — both carry marks.
- Basicity in water**: secondary > primary > tertiary > NH for methyl amines; aniline is far weaker
- Carbylamine test: only primary amines give the isocyanide smell
- Hinsberg test: primary product dissolves in alkali; secondary does not; tertiary does not react
- Aniline: protect as acetanilide for single bromination or para nitration
- Diazonium salts: Sandmeyer uses copper(I) salts, Gattermann copper powder; coupling gives azo dyes
The trap. Writing a Friedel-Crafts alkylation of aniline. **The –NH group binds AlCl and deactivates the ring.**
- Basicity in water**: secondary > primary > tertiary > NH for methyl amines; aniline is far weaker
- Carbylamine test: only primary amines give the isocyanide smell
- Hinsberg test: primary product dissolves in alkali; secondary does not; tertiary does not react
- Aniline: protect as acetanilide for single bromination or para nitration
- Diazonium salts: Sandmeyer uses copper(I) salts, Gattermann copper powder; coupling gives azo dyes
The trap. Writing a Friedel-Crafts alkylation of aniline. **The –NH group binds AlCl and deactivates the ring.**
Did you know
How can a dye be formed right inside a piece of cloth?
Some dyes are made inside the fibres of the fabric itself. The cloth is first soaked in an alkaline solution of a naphthol and then dipped into a cold solution of a diazonium salt.
Coupling happens within the fibres, locking the brightly coloured azo compound in place so it does not wash out easily. Changing the diazonium salt or its coupling partner changes the colour.
Coupling happens within the fibres, locking the brightly coloured azo compound in place so it does not wash out easily. Changing the diazonium salt or its coupling partner changes the colour.
Exam relevance
How are basicity, the Hinsberg test and diazonium salts tested in JEE Main and NEET?
Reactions of amines and diazonium salts are a recurring source of reasoning and conversion questions in both JEE Main and NEET Chemistry.
What gets asked. Ordering basic strength in the gas phase, in water and for substituted anilines, the carbylamine and Hinsberg tests, products of nitrous acid with different amines, substitution in aniline including why meta-nitroaniline forms, and multistep diazonium conversions and azo coupling.
Question types. Ordering and reaction-sequence questions in both exams, and match-the-column questions on named tests in NEET.
The trap that costs marks. Using the gas-phase basicity order for aqueous solutions.
What gets asked. Ordering basic strength in the gas phase, in water and for substituted anilines, the carbylamine and Hinsberg tests, products of nitrous acid with different amines, substitution in aniline including why meta-nitroaniline forms, and multistep diazonium conversions and azo coupling.
Question types. Ordering and reaction-sequence questions in both exams, and match-the-column questions on named tests in NEET.
The trap that costs marks. Using the gas-phase basicity order for aqueous solutions.
Key takeaways
What must you be able to do from this part?
- Basicity: in water, secondary > primary > tertiary > NH for methyl amines; methylamine is times stronger a base than aniline
- Reactions and tests: acylation, the carbylamine test for primary amines, nitrous acid, and the Hinsberg test for all three classes
- Aniline: bromine water gives 2,4,6-tribromoaniline; acetanilide protection controls substitution; Friedel-Crafts fails
- Diazonium salts: made at to K; Sandmeyer, Gattermann and azo coupling
Plan a route from aniline to p-bromoaniline that avoids forming 2,4,6-tribromoaniline.
- Reactions and tests: acylation, the carbylamine test for primary amines, nitrous acid, and the Hinsberg test for all three classes
- Aniline: bromine water gives 2,4,6-tribromoaniline; acetanilide protection controls substitution; Friedel-Crafts fails
- Diazonium salts: made at to K; Sandmeyer, Gattermann and azo coupling
Plan a route from aniline to p-bromoaniline that avoids forming 2,4,6-tribromoaniline.