A grey-green ring around the yolk of a hard-boiled egg is caused by a chemical reaction between iron in the yolk and sulfur in the white. It's harmless and doesn't affect the egg's flavor.
The grey-green ring you sometimes see around the yolk of a hard-boiled egg is the result of sulfur and iron compounds reacting at the surface of the yolk. This reaction is encouraged by high temperatures and long cooking times. The egg white contains sulfur, and the yolk contains iron. When the egg is heated, these elements can react to form iron sulfide at the yolk's surface. The longer the egg is cooked, and the higher the temperature, the more pronounced this reaction will be. It's important to note that this discoloration is purely cosmetic and doesn't indicate that the egg is spoiled or unsafe to eat. The egg is still perfectly edible and nutritious.
To minimize the formation of the grey-green ring, avoid overcooking your eggs. Once the eggs are cooked, immediately cool them in ice water. This rapid cooling helps to stop the reaction between the iron and sulfur, resulting in a more appealing yolk color.