That color change can diminish the enthusiasm of even the biggest hard-boiled egg enthusiasts.

So what causes yolks to go from bright yellow to green?

Does the new color have anything to do with how the egg tastes or raise any food safety concerns?

overcooked eggs

Credit:Caitlin Bensel; Food Stylist: Rebecca Cummins

Are there ways to avoid the color change entirely?

Experts share answers to all of these questions.

When boiled, these amino acids break down and release hydrogen sulfide and other sulfur-containing gases.

Hydrogen sulfide can also react with iron in the cooking water to give this product.

This is what gives boiled eggs their greenish color.

Caitlin Bensel; Food Stylist: Rebecca Cummins

Is It Safe To Eat Green Yolks?

Fortunately, theres an easy workaround that will yield photo-ready hard-boiled eggs.

The ice baths cold temperature can interrupt the sulfur-producing reaction and halt the color change.

Otherwise, water that has been distilled or gone through reverse osmosis can be used, he recommends.

University of Nebraska-Lincoln, Extension UNL Food.How to avoid a green ring on hard-boiled egg yolks.