Looks like potassium permanganate or another manganese salt.
permanganate is a strong oxidizer so was it used in cleaning the water treatment equipment?
Used primarily to reduce Taste and Odor in Surface Water Treatment Plants or the occasional NASTY Ground Water Well.