A TWO-PART HAIR DYE WHICH IS COMPOSED OF A FIRST PART CONTAINING AN ALKALI AGENT, A SECOND PART CONTAINING HYDROGEN PEROXIDE, AND A NON-AEROSOL FOAMIER CONTAINER FOR DISCHARGING A LIQUID MIXTURE OF THE FIRST PART AND THE SECOND PART IN THE FORM OF A FOAM, THE LIQUID MIXTURE CONTAINING THE FOLLOWING COMPONENTS (A) AND (B): (A) A POLYMER OR COPOLYMER CONTAINING 70% OR MORE DI MOLE FRACTION OF DIALLYLDIMETHYL QUATERNARY AMMONIUM SALT MONOMER, AND (B) AN N-ACYLAMINO ACID SALT, AN N-ACYL-N-ALKYLAMINO ACID SALT, OR AN ETHER CARBOXYLIC ACID SALT, WHEREIN, AN EQUIVALENT RATIO OF THE ANION SITE OF THE COMPONENT (B) TO THE CATION SITE OF THE COMPONENT (A) (ANION / CATION) IS MORE THAN 1, AND A VISCOSITY OF THE LIQUID MIXTURE AT 25°CIS 1 TO 300 mPas.