Sunlight is yellowish in atmosphere since some blue's been scattered by the atmosphere[1], but it's white in space.
[1] https://en.wikipedia.org/wiki/Rayleigh_scattering