💎 Mineral science 🌈 How light works No background needed About 7 min read

Why Does Opal, a Stone, Shine in Rainbow Colours?
― How Tiny, Invisible Rows of Spheres Play Tricks With Light

Have you ever seen an opal in a grandmother's ring, or in a jeweller's display case? Diamonds and rubies sparkle, but their colour stays the same. An opal is different. Tilt the ring a little and the colours drift from blue to green to orange, as if a rainbow were trapped inside the stone.

Published: 2026.08.21 Difficulty: ★☆☆ (no background needed) The only maths is in the fold-out section at the end
First, notice this little mystery

In a jeweller's display case, gently tilt an opal ring. A patch that looked blue-green a moment ago turns orange or red as soon as you change the angle. It is one stone, yet its colour seems to shift depending on where you look from.

The odd part is that opal contains no dye of any particular colour. There is no pigment, yet the colours keep changing. How does that work?

The rainbow needs two things working together

1
Inside the stone, invisible glass spheres are packed in tight rows

Inside a rainbow-shimmering opal, glass spheres a few hundred nanometres across, far too small to see, are thought to be stacked in a regular pattern.

2
When light hits the spheres, only certain colours reinforce each other and come back

When light strikes the regular layers of spheres, the light reflected from each layer overlaps. Only the colour that fits the spacing between spheres is strengthened. The other colours cancel out and vanish.

Only when both are in place do we get the effect of "colour without pigment". Let's take them one at a time.

Reason 1: Invisible "glass spheres" inside the stone

The silicon dioxide that makes up opal is not a crystal. It is an amorphous material, like glass. "Amorphous" means the atoms are not lined up in a regular pattern the way they are in a crystal.

Inside opal, though, this amorphous glass forms tiny spheres. Their diameter is roughly 150 to 400 nanometres (one nanometre is a billionth of a metre), and they are thought to be nearly all the same size. The spheres are stacked neatly, with no gaps. Over a very long time, water carrying dissolved silica (silicon dioxide) is thought to have seeped through, slowly growing the silica into evenly sized spheres.

Opal with spheres arranged this regularly is called precious opal (opal that shows play of colour). Opal whose spheres vary in size or arrangement is called common opal, and it does not shine in rainbow colours.

Incoming light One colour reinforced, reflected Spacing d * Schematic, to show the structure clearly
Figure 1: A magnified schematic of the inside of an opal. Silica spheres of equal size are packed in regular rows from top to bottom, and their spacing (d) decides which colour of light is reinforced and reflected. When the viewing angle changes, the colour that meets the condition changes too, so the colours appear to shift.

Reason 2: Light "interference" caused by the sphere layers

When light hits the regular layers of spheres, the light reflected from each layer overlaps. Only colours whose wave peaks meet peaks, and troughs meet troughs, are strengthened (this is called interference). The other colours are out of step and cancel out. Which colour is strengthened depends on the sphere spacing and on the angle at which the light arrives.

If you change the viewing angle, the colour that meets the condition changes. That is why an opal's colours shift as you tilt it. In the gem world this effect is called play of colour.

This idea, that "regular spacing makes colour", is found in living things too. In our article on how chameleons change colour, we look at how a chameleon changes the spacing of crystals in its skin to control the colour of the light it reflects.

💡 Why "common opal" has no rainbow

In common opal, the spheres are thought to vary in size and arrangement. When the spacing differs from sphere to sphere, the reflected colour differs too, so no single colour can be strengthened together. The colours cancel out, leaving a milky or opaque look, and no play of colour appears.

The same trick shows up elsewhere

Something you can try at home

🧪 A 30-second observation: hold the back of a CD or DVD up to the light
  1. Take an old CD or DVD and hold its recording side (the silver-looking side) up to a fluorescent lamp or sunlight
  2. Change the angle as you look, and rainbow-like bands of colour appear to move with it

The disc has extremely fine grooves, too small to see, cut in a regular spiral. This pattern of grooves sends each wavelength of light off in a different direction. The fine details differ from the spheres in opal, but "a regular, fine structure makes colour without any pigment" is true of both.

Summary

Opal shines in rainbow colours because of two things working together: (1) invisible glass spheres are stacked in a regular pattern, and (2) light striking that pattern is strengthened in certain colours only and sent back to your eye.

The colour of an opal is not the colour of the stone itself.
It is made fresh, right in front of the viewer's eyes, by light and a pattern too small to see.

For those who want to know more ― terms, formulas and links to textbooksFrom middle-school science to active research, each part is labelled with its level
How to read the labels below
  • Middle schoolCovered in middle-school science
  • High schoolCovered in high-school Basic Physics
  • High school+High-school Physics, or extension and sidebar material in textbooks
  • UniversityUniversity specialist subjects (crystallography, solid-state physics) not taught in high school
  • ResearchTopics researchers are still investigating, not yet taught as settled fact even at university

Middle schoolTerms: words around opal

Middle schoolHigh schoolCheck it with a formula: how does sphere size change the colour?

Hearing that "the sphere spacing decides the colour" doesn't tell you how big the difference is. A calculation gives clear numbers.

① First, the formula itself

Reinforced wavelength ≒ 2 × sphere spacing × refractive index of the surroundings

Reinforced wavelengthThe quantity that sets the colour you see [nm]
Sphere spacingRoughly the diameter of a silica sphere [nm]
Refractive index of the surroundingsTaken to be around 1.4 for opal

This is a simple approximation for looking straight on. In reality the angle matters too, but the formula does capture that the larger the spheres, the longer the reinforced wavelength.

② Put in numbers and solve
When the spacing is large2 × 250 × 1.4 = 700 [nm]
When the spacing is small2 × 180 × 1.4 = 504 [nm]

Visible light covers roughly 400 (violet) to 700 (red) nanometres. 700 nm is near the red end, and 504 nm is green. A difference of only a few tens of nanometres in sphere spacing shifts the colour you see from red to green.

③ Turning the number into a feel for the size

250 nanometres is only about 1/300 of the thickness of a human hair (roughly 0.08 millimetres). A tiny difference in the size of spheres too small to see decides the colour of the whole gemstone.

High school+UniversityWhy the colour changes with angle (more precisely)

The formula above was a simple approximation for looking straight on. In reality the viewing angle θ matters too. More precisely, it is handled with the relation mλ = 2d√(n² − sin²θ) (Bragg's diffraction condition applied to the sphere arrangement). Here m is the order of the reinforcing interference (usually 1), and n is the effective refractive index, including the material filling the gaps between spheres. When the angle θ changes, the right-hand side changes, so the reinforced wavelength λ changes as well. This is what lies behind play of colour, the colour shift you see when you tilt the stone.

Electron-microscope observations suggest that this regular arrangement of spheres is stacked in a way close to a face-centred cubic lattice. A material with a repeating structure on the scale of the wavelength of light, which strongly reflects or transmits only certain wavelengths, is called a photonic crystal, and opal is thought to be a leading natural example.

ResearchWhat we still don't fully understand

Even the beautiful colours seen in a jeweller's shop are still being studied down to the details of how they form. Being familiar is not the same as being understood.

Links to textbooks (by level)

LevelSubject / unitWhere in this article
Middle schoolScience: properties of light (reflection, refraction)Arrangement of spheres; precious vs. common opal
High schoolBasic Physics: properties of wavesBasic idea of interference; wavelength and colour calculation
High school+Physics: interference and diffraction of waves (advanced)Colour change with angle; Bragg's diffraction condition
UniversitySolid-state physics and crystallography (photonic crystals)Face-centred cubic lattice; photonic crystals
ResearchMineralogy and materials science (unsolved)Self-assembly of silica spheres; limits of synthetic opal; mechanism of crazing
Everyday examplesComparison with CDs/DVDs, Morpho butterflies and soap bubbles
References and sources
  1. Sanders, J.V. (1964), Colour of Precious Opal, Nature 204, 1151–1153 (elucidating opal structure by electron microscope).
  2. Jones, J.B., Sanders, J.V. & Segnit, E.R. (1964), Structure of Opal, Nature 204, 990–991.
  3. Explanatory materials on opal structure and play of colour from the Gemological Institute of America (GIA) and similar bodies.
  4. General descriptions of interference, diffraction and the Bragg condition in optics textbooks.
  5. Materials-science explanatory materials on photonic crystals (research on artificial opal and applications of structural colour).

* Figures such as sphere diameter and refractive index vary between individual stones and between sources. This article gives commonly used rough values.

* This article is a general-audience science explainer. Figures on opal structure and optics vary between sources and are given as rough guides to help you understand the mechanism.