The refraction of the sun's white light with the earth's ecliptic plane produces a color based on the positioning of the two with regards to how light hits the surface. It's also why the sky changes to more hotter colors in the mornings and evenings.