This has happened to me before in other recipes! The color is the result of a reaction between sulphur compounds and amino acids that are naturally in garlic and it's perfectly safe to eat.