Many years ago a friend's brother-in-law spilled bright green soft drink on the beige living room carpet. I asked if there was any aerosol shaving foam available. There was, I squirted a big pile of it onto the stain after mopping up as much of the spill as was possible.Then I worked the gloop into the stained carpet & let it sit for about ten minutes. Mopped up that mess and in the end there was no evidence of staining.