Same color has different appearance of value on the top of different backgrounds. They gave us a illusion of when it on the top of a bright layer, it looks it has a lower value. But when it on the top of a darker layer, it looks it has a higher value. This phenomenon is called simultaneous contrast. Two images above are the examples of it. Do you see the difference between the colors?