Massaging your hairs with oil is definitely needed but adding half-a-spoon of lemon juice could actually prevent toxic and dyes to damage your hairs. Best would be to avoid direct contact of skin or hairs to such colors, for this you can easily wrap a bandana around your head.