The invention discloses color fixing and locking shampoo. Comprising the following components: sodium laureth sulfate, ammonium laureth sulfate, cocamidopropyl betaine, polydimethylsiloxane, cocamidopropyl MEA, an acrylic acid and acrylic acid (ester) copolymer, polyquaternium-10, guar gum hydroxypropyl trimethyl ammonium chloride, zinc sulfate, cetostearyl alcohol, hydrolyzed wheat protein, silk amino acids, allantoin and sodium citrate. The toothpaste is prepared from citric acid, sodium chloride, a polygonum multiflorum extract, a tea leaf extract, an olive fruit extract, an eclipta prostrata leaf extract, a ginseng root extract, an butyrospermum parkii fruit fat extract, essence, deionized water and Kathon. The color fixing and dyeing agent has color fixing and dyeing effects on permanent and semi-permanent hair dyeing, almost no color fades within 10 days, and the color fades cannot be distinguished by naked eyes in 20 days.