If the hard-boiled egg has a green yolk, it's likely because it has been cooked too long.