Some people use ink to make their hair brighter. If it stains your carpet, apply the same DIY methods.  Since it is water-based rather than oil-based, treat it like you would water-based ink pens.