Light is energy produced by the sun in different wavelengths and as the light is absorbed and reflected, we end up with different colors.
Mother nature has color-coded everything for us - even our foods! She's giving us little hints along the way -"Pssst, eat this!