Well, that's one way of peeling boiled potatoes: You take them out of the boiling water, put them in really cold water for a few seconds and the skin peels off very easily. The same happens with boiled eggs.
If that's the case, the change of color is perhaps a way to show that the yu went from horribly burning to pleasant cooling.