Principle
The principle of colored afterimages is based on a fatigue reaction of the photoreceptors in the eye, especially the cones, which are responsible for color perception. If you look intensively at a certain color for a long time, the cones responsible for perceiving this color tire. If you then look at a white or neutral surface, you will see an afterimage in the complementary color.