Shadow Illusions: Goethe's Revenge
A and B are the same shade of gray
Really, they are. I downloaded and checked the pixel values way back when.
Found this some years ago when explaining optics to an intro Honours class.
Edward Adelson at MIT has some more interesting optical perception illusions.
Some other ones: Green/Pink X