A cosmetic for hair coloring or hair decoloring, the cosmetic comprising: a first agent that contains an alkali agent; and a second agent that contains hydrogen peroxide. One of the first agent and the second agent has a viscosity of 100 mPa∙s or lower, the other has a viscosity of 1000 mPa∙s or higher, the mixture of the first agent and the second agent contains components (A)-(D), and the mass ratio [(B)+(C)]/(A) of the mixture is 2-11. (A) is a polymer that includes a diallyl quaternary ammonium salt as a structural unit and that has a charge density of 2.5-9 meq/g, (B) is a compound represented by formula (3) R5-O-(CH2CH2O)n-[CH2CH(CH3)O]m-SO3M1 (R5 being a C8-25 hydrocarbon group, n being an average number of added moles of 0-50, m being an average number of added moles of 0-50, and M1 being an alkali metal or NH4), (C) is an anionic surfactant that has a carboxy group, and (D) is a polyoxyethylene nonionic surfactant that has an average number of added moles of oxyethylene groups of 90-250.L'invention concerne un cosmétique pour coloration capillaire ou décoloration capillaire, le cosmétique comprenant : un premier agent qui contient un agent alcalin ; et un deuxième agent qui contient du peroxyde d'hydrogène. Un des agents parmi le premier agent et le deuxième agent présente une viscosité inférieure ou égale à 100 mPa∙s, l'autre présente une viscosité supérieure ou égale à 1000 mPa∙s, le mélange du premier agent et du deuxième agent contient des composants (A)-(D), et le ratio massique [(B)+(C)]/(A) du mélange est compris entre 2 et 11. (A) est un polymère qui inclut un sel de diallyl-ammonium quaternaire en tant qu'unité structurelle et dont la densité de charge est comprise entre 2,5 et 9 meq/g, (B) est un composé représenté par la formule (3) R5-O-(CH2CH2O)n-[CH2CH(CH3)O]m-SO3M1 (R5 étant un groupe hydrocarbure C8-25, n étant un nombre moyen compris entre 0 et 50 de moles ajoutées, m étant un nombre moyen compris entre 0 et 50 de moles ajoutées, et M1 étan