Purple shampoo, if it’s like what one uses for light-colored horses, contains optical brighteners. Little bit of UV and those horses GLOW.
It tones down brassiness in blond hair, and for grey hair it makes the hair look more silver-y and counteracts the yellowing that can occur.