Not Your Average Rainbow
The first thing to know is that the rainbow on a CD is not created the same way as a rainbow in the sky. A rainbow after a storm is caused by refraction—light bending as it passes through water droplets. The CD, however, uses a different principle called
diffraction. Instead of light passing through something, it’s bouncing off a very specially structured surface. This phenomenon, known as iridescence, is when a surface appears to change colour as the viewing angle changes.
A Surface of Microscopic Grooves
To the naked eye, the surface of a CD looks perfectly smooth and mirrored. But under a microscope, a different world is revealed. Data on a CD is stored as a series of billions of tiny pits, arranged in a long, continuous spiral track. The distance between these tracks is incredibly small, typically around 1.6 micrometres (1,600 nanometres). This tightly packed, repeating pattern is the secret to the entire effect. It acts as what physicists call a diffraction grating.
The Magic of Diffraction
So, what is diffraction? In simple terms, it's the tendency of light waves to bend or spread out when they encounter an obstacle or pass through a narrow opening. Think of how water ripples spread out after passing through a small gap. When white light (which is a mix of all colours) hits the microscopic grooves on the CD, each tiny ridge scatters the light, causing it to spread out in all directions. Because the grooves are so close together, the spreading waves from adjacent tracks begin to interact with each other.
Waves Working Together and Apart
This interaction is called interference. When two light waves overlap, they can either add together or cancel each other out. If the crest of one wave meets the crest of another, they combine to make a brighter light. This is 'constructive interference'. If the crest of one wave meets the trough of another, they cancel each other out, resulting in darkness, or 'destructive interference'. Because white light contains many different colours, and each colour has a different wavelength, they diffract at slightly different angles.
Why the Colours Shift
The colour you see depends entirely on your viewing angle. At any given angle, only the light waves of a specific colour interfere constructively at your eye. For example, from one position, the red light waves might be perfectly in sync and amplified, so you see a flash of red. All other colours are cancelling each other out at that specific spot. When you tilt the CD, you change your angle relative to the surface. This changes the path lengths of the reflected light waves, causing a different colour's wavelength to be the one that gets amplified. This is why the colours seem to dance and shimmer as you move the disc.
Nature's Own Iridescence
This effect, called structural colour, is not unique to technology. Nature is the original master of iridescence. The stunning, shimmering blues of a Morpho butterfly's wings, the metallic sheen on a peacock's feather, and the vibrant gorgets of hummingbirds are all created not by pigments, but by microscopic structures that diffract light. These natural structures, like the grooves on a CD, manipulate light to produce vivid, changing colours that often serve purposes in mating displays or camouflage.















