The green or gray ring around the yolk of a hard-boiled egg happens when the hydrogen in the egg white combines with sulfur in the yolk. This happens most often when the eggs are boiled too hard for too long. The green ring can also be caused by a high amount of iron in the cooking water.