The subject of the present invention consists, therefore, of a dye composition for human keratinous fibers, and hair in particular, based on 5,6-dihydroxyindole and at least one foam generator, packaged under pressure in an aerosol device in the presence of a propellant agent, under such conditions as to form a dyeing foam after being dispensed from the aerosol device.