On a plain background, the bar is one even gray.
Lighter or darker?
Gradient illusion
Does the gray bar fade from light to dark?
No: it is one even gray all along.
Why? The background behind it changes from dark to light, and your eye compares the bar with whatever is next to each part.
Picture: Dodek, CC BY-SA 3.0 · Wikipedia(opens in a new tab)
