If the peas are exposed to heat for too long, the chlorophyll spills out of the vegetable. Make sure not to overcook the peas (you don't want the water to start turning green). You can also "shock" the peas by draining them and immediately adding them to a bowl of ice water.