Softswim will turn greenish to brown when chlorine is introduced and get gunky.
purple coloration to water when chlorine is introduced and black stains on sufaces is probably manganese, not magnesium.
Lavender stain on pool surfaces ("purple haze") is copper cyanurate caused by high CYA and copper in the water.