To provide a hair cosmetic which contains a predetermined melanin precursor and a cationic surfactant, hardly causes aggregates even in an alkaline region, has excellent stability and can improve the touch feeling of the hair after treatment.SOLUTION: There is provided a hair cosmetic which contains the following components (A) to (C): (A) a compound represented by the formula (a) or a salt thereof (the broken line represents the presence or absence of a π bond. Rrepresents OH or acetoxy. Rrepresents H. -COOR (R: H, methyl or ethyl). Rrepresents H, acetyl, a methyl group, ethyl.); (B) a cationic surfactant; and (C) a polyoxyethylene addition type nonionic surfactant, wherein (B)/(A) is 1.0 or more, (C)/(A) is 1.0 or more and a pH at 25°C is 8.0 or more and 12.0 or less.SELECTED DRAWING: None【課題】所定のメラニン前駆体と、カチオン性界面活性剤とを含有し、アルカリ領域においても凝集物を生じ難く安定性に優れ、かつ、処理後の毛髪の感触を良好にすることができる毛髪化粧料の提供。【解決手段】次の成分(A)~(C):(A)式(1)で表される化合物又はその塩(破線はπ結合の存在又は不存在を示す。R1:OH、アセトキシ。R2:H、-COOR(R:H、メチル、エチル)。R3:H、アセチル、メチル基、エチル。)、(B)カチオン性界面活性剤、(C)ポリオキシエチレン付加型非イオン性界面活性剤を含有し、(B)/(A)が1.0以上、(C)/(A)が1.0以上、25℃におけるpHが8.0以上12.0以下である毛髪化粧料。【選択図】なし