Sunlight contains all the colors of the rainbow, which blend to form white light, making sunlight appear white. At times, some of the color wavelengths, especially blue, become scattered in Earth’s atmosphere and the sunlight appears colored. When the sun is high in the sky, some of the blue rays are scattered in Earth’s atmosphere. At such times, the sky looks blue and the sun appears to be yellow. At sunrise or sunset, when the light must follow a longer path through Earth’s atmosphere, the sun looks red (red having the longest wavelengths).