Yellow light has a longer wavelength that scatters less in fog compared to white light (Rayleigh scattering decreases with longer wavelength). This gives better penetration through fog particles, improving visibility. Yellow light also causes less eye strain than white light.