The story
Swim over a coral reef at night with an ordinary flashlight and it looks brown and gray. Switch to a blue light, put a yellow filter over your mask, and the reef lights up in green, orange and red.
The coral is not making that light. It is giving it back.
This is called fluorescence. Many corals have special proteins that soak up blue light and send it back out as a different color.