Semi-permanent hair color can sometimes transfer to pillows, sheets, towels, and clothing. Be sure your hair is thoroughly dry before going to bed to help avoid it. The chances are that if it does transfer, it will wash out of the pillowcase the same way it washes out of your hair.