Why is space cold?
Because of the distance of heat. Space can also be incredibly hot.
It's empty and has nothing to produce heat.
If you are wearing a space suit, it's white with a reflective helmet for a reason: to keep the sunlight from cooking you in your suit.