instead, heat the eggs gently using the water. this allows for a gradual, even cook that equals the perfect hard-boiled egg. you'll know that your egg is perfectly cooked if it has an opaque, yellow center. the yolk of an overcooked egg, on the other hand, will turn a greenish-gray color.