The chief colors of which sunlight or white light is composed are red, orange, yellow, green, blue, indigo and violet, though there are an infinite number of gradations of color which blend into one another, gradually producing the intermediate tints and shades. The colors just mentioned are called the primary colors of the solar spectrum, which can be produced as a band of light of variegated colors, arranged in the order named by passing a ray of ordinary sunlight through a glass prism. The individual rays of different color and wave-length that make up a beam of sunlight, or white light, then separate out in the order of the wave-lengths. The red rays vibrate the most slowly and have the longest wave-length of all the rays of the visible spectrum. About four hundred trillion vibrations of red light reach the eye in one second. Violet rays, on the other hand, vibrate the most rapidly of all the visible rays and have the shortest wave-length. About eight hundred trillion vibrations of violet light reach the eye every second. The wave-lengths of the intermediate colors decrease in length progressively from the red to the violet and, of course, the frequencies of their vibrations increase in the same order. All sunlight is made up of these rays of different colors and different vibration frequencies, and of other rays as well, to which the human eye is not sensitive, and which, therefore, do not appear in the visible spectrum. Among these invisible rays are the infra-red rays which come just below the red of the visible spectrum, and which are of longer wave-length than the red rays, and the ultra-violet rays, which lie beyond the violet rays of the visible spectrum, and are of shorter wave-length than the violet rays.
Now a ray of ordinary sunlight is separated into the rays of various colors, which form the solar spectrum when it passes from a medium of one density obliquely to a medium of another density, as when it passes from air to glass, or from air to water, or from outer space into the earth's atmosphere. Under such circumstances its velocity is slowed down when it passes from a rare to a denser medium, and the waves of different wave-lengths are bent from their former course, or refracted, by different amounts. The red rays, of longest wave-length, are bent from their former course the least, and the violet rays, of shortest wave-length, are bent the most upon passing from a rare to a denser medium. As a result the ray of sunlight is spread out or dispersed into its rays of different wave-length and color upon entering a medium of different density. It is this refraction and dispersion of sunlight that produces many color effects in the earth's atmosphere.
The atmosphere is not of uniform density throughout. At high altitudes it is extremely rare. That is, there is little of it in a given volume. Close to the earth's surface, however, it is comparatively dense. Half of all the atmosphere is within three and one-half miles of the surface and half of the remainder lies within the next three and a half miles. We may consider it as made up, on the whole, of layers of different densities, strongly compressed near the surface.
Imagine a ray of sunlight entering the earth's atmosphere from without. If it comes from a point in the zenith its course is not changed upon entering the atmosphere, because light passing from a certain medium—as space—into a medium of different density, is not bent from its course, or refracted, provided it enters the new medium in a direction perpendicular to the surface. If it enters the atmosphere (which is the new medium of greater density) obliquely, refraction, or bending of the ray, takes place, and as the ray advances toward the earth, through layers of increasing densities, it is bent from its former course more and more. As the advancing rays of different colors and wave-lengths in the beam of sunlight are slowed down in the new medium, the red rays are turned from their course the least and the violet rays the most and the entire advancing wave-front of the beam of sunlight is bent down more and more toward the horizon, as it proceeds through the atmosphere. As we on the earth's surface see the ray not along its bent course through the atmosphere, but in the direction in which it finally enters our eyes, the effect of refraction upon a ray of light passing through the atmosphere is to displace the object in the direction of the zenith or increase its distance above the horizon. As a result of refraction we see the sun—or moon—above the western horizon after it has really set, and above the eastern horizon before it has really risen. The oval shape that the sun, or moon, often presents on rising or setting, is due to the fact that the light from the lower limb is passing through denser air than the light from the upper limb, and so is refracted more. As a result the lower limb is lifted proportionately more than the upper limb. This distorts the form of the solar or lunar disk, making it appear oval instead of circular.
The familiar twinkling or scintillation of stars and, more rarely, of the planets, is a result of interference of light waves due to irregular and variable refraction in air that is not uniform in density, owing to the presence of constantly rising and descending atmospheric currents of different densities. This also produces the shimmering or unsteadiness of star images in the telescope, that interferes so greatly with accurate measurements of angles or observations of planetary markings.
One may ask why it is, if light from an object, say a star, is bent from its course and separated into rays of various colors upon entering the earth's atmosphere, that we do not see the object drawn out into a band of spectral colors. It is because the angular separation of the various colors is so slight under ordinary circumstances that light from one point is blended with light from a neighboring point of complementary color to produce white light again. Under certain circumstances, however, beautiful color effects may be seen in the earth's atmosphere as a result of the refraction of sunlight.
The blue color of the sky and its brightness is caused by the scattering of the rays of shortest wave-length, the violet and blue rays, by the oxygen and nitrogen in the upper atmosphere. The molecules of these gases interfere with the passage of these rays, powerfully scattering and dispersing them, and thus increasing the length of their path through the air and diffusing their color and brightness in the upper atmosphere, while permitting rays of longer wave-length, the red and orange, to pass on practically undisturbed.
When an object in the heavens lies close to the horizon, the rays of light from it have to travel a longer path through the atmosphere than when the object is overhead, and that too through the densest part of the atmosphere, which lies close to the earth's surface, and in which are floating many dust particles and impurities from the earth's surface. All these particles, as well as the increased density of the atmosphere, interfere with the free passage of the rays, especially of shorter wave-lengths. The violet and blue rays are sifted out and scattered in their long journey through the lower strata of air, far more than when they come to us from an object high in the sky. Even the red and yellow rays are more or less scattered and bent aside—diffracted—by these comparatively large particles near the surface. The reddish color of the sun, moon and even of the stars and planets, when seen near the horizon, as well as the beautiful sunset tints, in which reds and pinks and yellows predominate, are due to the fact that the rays of longer wave-length are more successful in penetrating the dense, dust-laden layers of the lower atmosphere. It is to be free of the dust and impurities as well as the unsteadiness of the lower atmosphere, that observatories are built at high altitudes whenever possible.
When there have been unusually violent volcanic eruptions, and great quantities of finely divided dust have been thrown into the upper atmosphere, the effect upon the blue and violet rays from the sun is very great. The volcanic dust particles are so large that instead of scattering these rays of shorter wave-length, as do the oxygen and nitrogen in our atmosphere, they reflect them back into space and so decrease the amount of light and heat received from the sun. For this reason the general temperature of the earth is lowered by violent volcanic eruptions. Unusually cold periods, that lasted for months, followed the terrible eruption of Krakatoa in 1883 and of Katmai in 1912.