The sun is white. We just think it's yellow because of Rayleigh scattering.