Scrambled eggs may turn gray when hydrogen sulfide present in egg white reacts with iron present in the yolk. As a result, iron sulfide is formed. This is due to overheating the egg for a long time. The egg is still edible but looks less tempting.