Using HTML color encoding, what would be the color of the sun from space ?
In outer space, the sun would be very close to #ffffff, that is to say, perfect white. This is because the sun emits all colors of the visible spectrum more or less evenly, and it is the refractive aspects of our atmosphere that make it appear yellow to us here on Earth.
What color would it be as seen from earth in html color code?
When seen from earth the sun changes color from sunrise to sunset due to light traveling at different angles through the earth’s atmosphere depending on the time of day.
Here are some hexadecimal color approximations depending on the time of the day :

- Sunrise colors : `#ea8400`, `#efc057`, `#f2eccf`.
- Midday colors : `#fdfdfd`, `#ffffff`.
- Sunset colors : `#f7f546`, `#fcf23b`, `#f44c00`.