Stare at the yellow + in the middle of figure for 15-30 seconds. Then move your gaze off to the white square on the right. Did the colors really reverse themselves? This is an example of an "afterimage".
Here's another example of creating an afterimage. Can you put the fish in the bowl? Try this. Stare at the yellow stripe in the middle of the fish in the picture below for about 15-30 sec. Then move your gaze to the fish bowl. You should see a fish of a different color in the bowl. It helps if you keep your head still and blink once or twice after you move your eyes to the bowl. The afterimage will last about five seconds.
What's Happening: in the retina of your eyes, there are three types of color receptors (cones) that are most sensitive to either red, blue or green. When you stare at a particular color for too long, these receptors get "tired" or "fatigued." When you then look a different background, the receptors that are tired do not work as well. Therefore, the information from all of the different color receptors is not in balance. Therefore, you see the color "afterimages."