I keep a small container of minced onions and one of minced garlic in the fridge, since almost everything I cook requires both. The last couple of time I've made up batches I decided to mix them together in one container. Both times, the mixture has changed colors after a couple of days. The first time I used yellow onions and the garlic turned the batch bright green. The last time I was using red onions, and they have turned gray. The smell fine and taste fine, they just look horable. Of course that goes away once the sizzle in the pan a couple of minutes.
My question is, are they same to eat, and does anyone know why this happens?