wool or man made? Agree defoamer in tank and down hose. Flush well with cold water until all the shampoo is out, take it easy as agitation will just make it worse and you could burst the fibre, wool will take longer to flush, then take a look at what's left. The colour may come with the soap, but it's important to get everything else out first. I would ask if they have treated it with anything too. And make no promises. RX may take any dye out but test first.
:-[Should of read title. Beware of pilling.