Here’s how purple shampoo works, whether it’s right for your hair and how to use it without going overboard.