They use a purple indicator chemical to make the meth purple, as stated above the indicator changes colour when in sunlight
It also loses colour when you add a Caustic Soda prill/crystal to it . About a match head size which changes the pH from acid to alkali . The Safety Data sheet list its pH...