How to Get Hair Dye Out of Clothes
Removing hair dye stains from clothes as soon as they happen increases the chances of success. You may need to give extra care to different dye colors, but common household products like oxygen-based bleach, chlorine bleach, or strong laundry detergent are often effective.

Source: https://www.thespruce.com/how-to-remove-hair-dye-stains-2147152