Prism: split light into colors

Move the light and turn the glass. Each color bends by its own amount, just like a real prism.

Drag the torch or the prism. Turn the prism until the light fans out, then click any ray to get its hex code.

The colors in white light

FAQ

How does a prism split white light?

Glass slows each color of light by a different amount, so each color bends at a slightly different angle as it enters and leaves the prism. Violet bends the most and red the least, so white light fans out into a spectrum.

What are the colors that come out of a prism?

Red, orange, yellow, green, cyan, blue and violet, blending smoothly into each other. Newton named seven of them, which is where ROYGBIV comes from.

Why does violet bend more than red?

Glass has a higher refractive index for shorter wavelengths. Violet light is around 400 nm and red around 700 nm, so violet bends more.

Can light reflect inside a prism?

Yes. If light hits the inside of the glass at a steep enough angle it cannot get out and reflects instead. This is total internal reflection, and you can see it here by turning the prism.