Look at the red and black stripes on the left for a few seconds. Then switch and look at the green and black stripes on the right for a few seconds. Continue alternating between the colors for at least three minutes.

This phenomenon is a kind of afterimage, which Encyclopedia Britannica defines as a "visual illusion in which retinal impressions persist after the removal of a stimulus, believed to be caused by the continued activation of the visual system." In other words, the strong colors make an impression on the visual system and cause it to think that it's still looking at the colors even when it's not, making the black and white stripes appear tinged with red and green.

The same way a camera's bright flash can linger in your vision, a study in the Journal of Experimental Psychology found that the McCollough effect can last more than three months if the subject looks at the colorful gratings for extended periods of time. So if you don't see the effect after a few minutes of looking back and forth, exercise caution before trying it for longer.