The color of the sky and the Sun's appearance depend on how sunlight is scattered by molecules in the atmosphere. Rayleigh scattering dictates that scattering is inversely proportional to the fourth power of the wavelength (scattering ∝ 1/λ⁴). This means shorter wavelengths scatter significantly more than longer ones. The path length of sunlight through the atmosphere is the key factor explaining the difference between the Sun's appearance at noon (shortest path, less scattering) and at sunrise/sunset (longest path, more scattering of short wavelengths).