I am not a dentist, but here is what works for me.
Be sure to get regular cleanings at the dentist. Avoid cola, tea and coffee. Avoid blueberries. Floss every day. Do not brush too hard or you may damage your teeth and gums. Over the counter whitening strips can help remove the yellow color. Use as directed.