Both coffee and tea (especially black tea) contain tannins, compounds that discolor and yellow teeth. In addition ... they can also contribute to tooth discoloration. Their high acid content ...