It works by releasing hydrogen peroxide to break up or remove the color from organic materials but is gentle enough that it won't affect most fabric dyes.
The peroxide would dissolve any fabric it touched.