Skip to content
Tutorials Center
My learning

Topics

Lesson 34 of 38 · The Electromagnetic Spectrum

Light, Color and Dispersion

Learn how prisms split white light, how rainbows form, how colors mix by addition and subtraction, and why the sky is blue and sunsets are red.

White light looks plain, but it is a mixture of every visible color. A prism, a raindrop or a drop of oil on water can reveal the hidden colors. In this lesson you will learn why white light splits, how rainbows form, how colors combine when you mix lights or paints, and why the sky is blue.

Visible light and color

Your eyes respond to wavelengths of roughly 400 nm to 700 nm. Different wavelengths look like different colors:

Color Approximate wavelength
Violet 400-450 nm
Blue 450-495 nm
Green 495-570 nm
Yellow 570-590 nm
Orange 590-620 nm
Red 620-700 nm

The boundaries are blurry: color is a perception, not a sharp physical division, and people may disagree about where "blue" ends and "green" begins.

Dispersion

In glass, water and most materials, the refractive index depends a little on wavelength: violet light slows down more (higher n) than red light. So when white light enters a prism, each color refracts by a slightly different amount, and the colors fan out. This spreading is called dispersion.

The exact numbers depend on the type of glass. The key idea is only that n is larger for shorter wavelengths.

A prism refracts light twice (entering and leaving), and both bends add to the spread. Red ends up deviated least, violet most.

Python Dispersion in a prism (illustrative model)

Press Run (or Ctrl + Enter) to see the result here.

Program input · what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

The numbers come from our simplified model, so only the pattern is reliable: shorter wavelength, larger index, larger deviation.

Rainbows

A rainbow needs sunlight behind you and raindrops in front. Inside each drop, sunlight:

  1. Refracts on entering the drop (and disperses into colors).
  2. Reflects once off the back of the drop.
  3. Refracts again on leaving.

The result is concentrated at about 42° from the direction directly opposite the Sun (the antisolar point) for red light, and about 40° for violet, so red is on the outside of the bow. Each raindrop sends one color to your eye, and drops at different heights send different colors. Together they make an arc. A fainter secondary bow, made with two reflections, appears around 51° with the colors reversed.

flowchart LR
    A["Sunlight enters<br/>raindrop"] --> B["Refraction and<br/>dispersion"]
    B --> C["Reflection at<br/>back surface"]
    C --> D["Second refraction<br/>on leaving"]
    D --> E["Colors reach<br/>your eye at about 40°-42°"]

One internal reflection forms the primary rainbow.

Mixing colors

Your eye has three kinds of color-sensitive cells (cones), roughly tuned to red, green and blue. Screens exploit this by mixing just three colors.

Additive mixing (lights): adding light adds color.

  • Red + green = yellow
  • Green + blue = cyan
  • Blue + red = magenta
  • Red + green + blue = white

Subtractive mixing (paints, filters, inks): each pigment removes (absorbs) some wavelengths from white light. Printers use cyan, magenta, yellow (and black). Cyan absorbs red, magenta absorbs green, yellow absorbs blue.

An object's color is the light it reflects. A red apple reflects mostly red wavelengths and absorbs most others. Under a green-only light it looks nearly black, because it has almost no green to reflect.

Additive color mixer

Set red and green to maximum and blue to zero. The swatch turns yellow, even though no yellow light is present: your eye is being tricked by two other colors.

Why the sky is blue

Sunlight is scattered by air molecules, much smaller than the wavelength of light. This Rayleigh scattering is much stronger for short wavelengths: the scattered intensity is proportional to 1/λ⁴. Blue light (450 nm) is scattered about (700/450)⁴ ≈ 5.9 times more than red light (700 nm). Scattered blue light reaches your eyes from every direction, so the sky looks blue.

At sunrise and sunset the light passes through a long stretch of atmosphere. Most blue is scattered out of the direct beam, and the remaining light is rich in orange and red.

Violet is scattered even more than blue, but the Sun emits less violet, the upper atmosphere absorbs some of it, and our eyes are less sensitive to it. So the sky looks blue rather than violet.

Check your understanding

Quick check · 4 questions

of 4 answered You scored / 4 · perfect!

  1. 1. In a glass prism, which color is refracted (bent) the most?

    Violet has the shortest wavelength and the highest refractive index in glass, so it bends the most.
  2. 2. What colors does a green light and a red light make when added together on a white screen?

    Additive mixing: red + green = yellow.
  3. 3. Why does a red apple look almost black in pure blue light?

    The apple reflects mostly red. Pure blue light contains no red, and the apple absorbs the blue, so little light returns.
  4. 4. Rayleigh scattering intensity is proportional to:

    Scattering is proportional to 1/λ⁴, so short (blue) wavelengths scatter much more than long (red) ones.

Summary

  • Visible light spans about 400 nm (violet) to 700 nm (red).
  • Dispersion: refractive index varies with wavelength, so a prism spreads white light into a spectrum, violet deviated most.
  • Rainbows come from refraction, one internal reflection and refraction in raindrops; red is on the outside.
  • Additive mixing of lights (R, G, B) and subtractive mixing of pigments (C, M, Y) differ.
  • The sky is blue because Rayleigh scattering varies as 1/λ⁴.

Next: Uses and Safety of Electromagnetic Radiation