Red light has the longest wavelength in the visible spectrum. According to Rayleigh scattering, the scattering of light by particles is inversely proportional to the fourth power of its wavelength.