Two squares, one grey
In 1995 the MIT vision scientist Edward Adelson published a picture of a chequerboard with a green cylinder standing on it, casting a shadow across the squares. One square outside the shadow, marked A, is plainly dark grey. Another square inside the shadow, marked B, is plainly light grey. Except they're the same. Cover everything else in the picture and the two squares are printed with exactly the same ink, displayed with exactly the same pixels. Uncover the picture, and they go back to looking completely different.
Adelson's checker shadow illusion is one of the most convincing ever made, and it isn't a failure of vision. It's vision doing its job very well.
Measuring paint, not light
The amount of light that reaches your eye from a surface depends on two things: how light or dark the surface itself is, and how much light is falling on it. A white sheet of paper in shadow can send less light to your eye than a black sheet in sunshine. If you simply measured the light, the world would look like a chaos of brightness changes every time a cloud passed.
So the visual system tries to work out the colour of the surface itself, its lightness, and set aside the lighting. In the checker shadow picture, square B is in shadow. Your brain knows that a square in shadow reflecting that much light must be a light square, so it sees it as light. Square A is in full light, so the same amount of light means a dark square. The brain is right about the chequerboard. It's just wrong about the pixels, which is the only thing you were asked about.
Alan Gilchrist and colleagues proposed in 1999 that the brain does this by anchoring: it treats the brightest surface in a region as white and judges everything else relative to it, using local regions like "in the shadow" and "out of the shadow" as well as the whole scene. Their theory accounts for many lightness illusions, including the errors it predicts the brain should make.
Grey on black, grey on white
The simplest version is simultaneous contrast. Put a grey square on a black background and an identical grey square on a white background. The one on black looks lighter; the one on white looks darker. The surround changes how the grey looks, as if the brain were partly judging lightness by comparison with what's nearby.
Edges matter most. Where a light region meets a dark one, you can see thin bands that aren't there: a lighter strip along the light side of the edge and a darker strip along the dark side. These are Mach bands, reported by the physicist Ernst Mach in 1865. He suggested they come from lateral inhibition in the retina, nerve cells suppressing their neighbours so that edges are exaggerated. Mach bands matter in medicine: dentists and radiologists have to be careful not to mistake them for real features on X-rays.
When contrast gets it backwards
If lateral inhibition explained everything, you'd always see greys pushed away from their neighbours. In 1979 Michael White published a pattern that does the opposite. Take a grating of black and white stripes, and replace short sections of some stripes with grey. The grey sections lying in black stripes are mostly bordered by white, so simple contrast predicts they should look darker. Instead they look lighter, closer to the stripes above and below them. It seems the brain treats each grey patch as part of the stripe it sits in, and judges it against that stripe's neighbours. White's illusion is one of the clearest signs that lightness depends on how the brain groups a picture into surfaces, not just on raw contrast.
The dress
In February 2015, a photo of a dress split the internet. Some people saw it as white and gold, others as blue and black. The real dress was blue and black. The disagreement was a lightness and colour problem: the photo didn't make it clear what light the dress was in.
Rosa Lafer-Sousa, Katherine Hermann and Bevil Conway surveyed more than 1,400 people in 2015. They proposed that people who assumed the dress was lit by bluish daylight mentally subtracted the blue and saw white and gold, while people who assumed warm indoor light subtracted the yellow and saw blue and black. Some people even switched from one to the other on retesting. Pascal Wallisch surveyed about 13,000 people in 2017 and found that what people assumed about the lighting predicted what they saw much better than their age or sex did. He also found a link with being an early riser or a night owl, which he connected to how much daylight or artificial light people typically see.
The dress is the colour version of a Necker cube: one image, two interpretations, each depending on an assumption the picture itself doesn't settle.
Lightness in our gallery
- Phantom colors has a Cornsweet design, where two identical greys look different because of the edge between them, along with the watercolour and neon spreading illusions. There's more in Phantom edges and phantom colors.
- Phantoms has the scintillating grid, a relative of the Hermann grid, where dark spots flicker at crossings you aren't looking at.
- Shadow play puts shadows to a different use, as described in Shadow illusions.
Try it. Open Cornsweet in Phantom colors. The two halves look like different greys. Cover the boundary between them with a finger, or a strip of paper, and watch the difference vanish.