Hard-boiled eggs have grey yolk because of the chemical reaction between sulfur present in the egg white and iron in the egg yolk. When these two substances react, they form ferrous sulfide at the surface of the yolk. This results in a greenish-grey ring around the egg yolk.
A gray-green ring can result from overcooking or from iron in the cooking water. USDA describes this discoloration as harmless, but the color does not establish that an egg was cooked and stored safely.
A properly handled hard-cooked egg can be eaten despite this ring. Discard eggs that have been stored unsafely, whether or not a ring is visible.
Chemical Reaction that Causes Grey Yolks in Hard-Boiled Eggs
Let’s now see in detail what causes the grey color in hard-boiled egg yolks.
The egg is made up of two main parts – the yolk and the white. The yolk contains iron, while the white contains sulfur.
When you cook an egg, the heat causes the sulfur in the white and the iron in the yolk to react together.
This reaction forms a compound known as ferrous sulfide (also known as iron sulfide), which is dark in color.
The reaction takes place where the white meets the yolk, creating the familiar gray-green ring at that boundary.
The ring is a chemical reaction at the surface of the yolk, not simply the effect of mixing two pigments.
The ring itself is not a spoilage test. Overcooking can also change texture, so the practical goal is to cook the egg fully without unnecessary extra heating.
Factors that Contribute to Grey Yolks in Hard-Boiled Eggs

Overcooking allows the sulfur-and-iron reaction to become more noticeable. Iron in the cooking water can also contribute to a greenish ring.
A ring does not tell you the egg’s complete storage history. Do not use its presence or absence to decide whether an egg left warm for too long is safe.
How to Prevent Grey Yolks in Hard-Boiled Eggs?
Follow a reliable hard-cooking method and avoid unnecessary extra cooking. Cook until both white and yolk are firm; preventing a ring is not a reason to leave the egg undercooked.
Cool the eggs promptly in cold or ice water after cooking. Refrigerate them at 40°F or below within two hours, or within one hour above 90°F.
FDA advises using hard-cooked eggs within one week, whether they are peeled or still in the shell. Prompt chilling helps with both handling and quality, but it does not guarantee that every egg will have exactly the same color.

