Provided are methods of treating hair, the method comprising: contacting the hair with a mixture comprising: i. an ionic liquid comprising an imidazolium-based compound or ammonium-based compound, and ii. an anionic surfactant. In certain methods, the mixture further comprises a cationic direct dye.