Scattering affects the color of light coming from the sky, but the details are determined by the wavelength of the light and the size of the particle. The short-wavelength blue and violet are scattered by molecules in the air much more than other colors of the spectrum.