Why would a white plastic button turn purple from an indigo dyebath?
Indirubin is one the most curious components of indigo. It is sometimes referred to as the “red” of indigo. Indirubin only occurs in natural indigo and you will not find it in a synthetically produced pigment. Indirubin is valued for its medicinal applications.
Some dyers have been successful at manipulating the extraction and pH of indigo in order to reveal the mysterious purple/red color of indirubin on a textile. I have no real experience with this process.
At one point I did learn how to analyze an indigo pigment in order to determine the presence of indirubin. If indirubin is present, it is an indicator that the pigment is made from plants and not synthetically produced. Natural indigo has varying amounts of indirubin. The process of analyzing uses solvents and chemicals so it is not something that I want to do on a regular basis.
I purchase all of my indigo pigment from Stony Creek Colors, as I know that their indigo comes from plants (and, consequently, contains plenty of indirubin).
Now that I maintain several large “active” indigo vats, I will occasionally dye a ready made garment. A white linen blouse is not a good choice for wearing apparel in the dye studio, but one that has been dyed a rich indigo blue is perfect.

After dyeing, just before the final rinse, I always boil an indigo dyed textile in order to remove any unattached dye. Cellulose is boiled vigorously with a small amount of neutral detergent for about 10 minutes. Wool and silk are brought to a near simmer and held at that temperature for the same amount of time.
Once I started using indigo from Stony Creek I noticed that the water from the final boil was always tinted a purple hue. I assumed this was the indirubin that was being rinsed from the textile. Interestingly, I observed that the purple color in the boil water is temporary, and will disappear as the bath cools.
Recently, I dyed some linen shirts that had plastic buttons. The buttons stayed white until the final boil. When the garment was removed from the boil bath, they had become purple. I have now learned that indirubin is less easily reduced and the undissolved indirubin will stain plastics and other petroleum derived materials. Some of the polyester threads used to sew the shirts are also tinted purple.
Summer Arrowood, the chemist at Stony Creek Colors, tells me that all the plastic vessels in her lab are dyed purple from the indirubin!
Will these buttons remain purple after multiple washings? I don’t know. There is always more to observe and learn from the natural dye process.