Turmeric is a natural indicator. Its colour changes from yellow to red in basic medium.
Soaps are basic in nature. So when a turmeric stain is washed with a soap solution, the stain colour changes to red.