If the peas are being cooked for too long then the chlorophyll spills out of them. Steaming helps the peas retain color better than boiling. You could also shock the peas so that once you drain them you place them in a bowl of cool ice water.