Pure vitamin C (L-ascorbic acid) oxidizes in water, and its breakdown products are yellow to brown. Oxygen, light, heat, trace metal ions and a pH that's too high all speed this up. Once it has turned brown it has lost much of its active vitamin C — you can't reverse it, only slow it down in the next batch.