While diet alone cannot prevent or treat hyperpigmentation, a diet rich in antioxidants can support overall skin health and repair.