Your white garments' look depends on water quality. Hard water with high calcium and magnesium concentrations yellows. They stain cloth by binding. If possible, installing a water softener can improve your clothes, skin, and hair. However, because this isn't an option for many, you can also add water conditioner to your washing.