This is not an optical illusion, but rather color adaptation of the eye.
Check out many more examples by clicking here