
Perceptual constancies are sources of illusions. Color constancy and brightness constancy are responsible for the fact that a familiar object will appear the same color regardless of the amount of or colour of light reflecting from it. An illusion of color or contrast difference can be created when the luminosity or colour of the area
surrounding an unfamiliar object is changed. The contrast of the object will appear darker against a black field which reflects less light compared to a white field even though the object itself did not change in color. Similarly, the eye will compensate for colour contrast depending on the colour cast of the surrounding area.
Object consistencies

Object consistencies
Like color, the brain has the ability to understand familiar objects as having a consistent shape or size. For example a door is perceived as rectangle regardless as to how the image may change on the retina as the door is opened and closed. Unfamiliar objects, however, do not always follow the rules of shape constancy and may change when the perspective is changed. The Shepard illusion of the changing table is an example of an illusion based on distortions in shape constancy.