Color 101 / Colour perception
Why the same color looks different on different backgrounds
Two squares can share one HEX value and still look different. The surrounding colour is part of what you see.
Before adjusting a colour that suddenly feels wrong, compare the surfaces around it. You may be noticing a change of context rather than a change to the colour itself.
One gray, two surroundings
Look at the small gray squares below before checking their labels. Does one seem lighter? Both use exactly #808080, with the same size and full opacity. Only the large surrounding fields differ.
Different backgrounds. The two gray values are identical.
On the dark field, the gray may look lighter than it does on the pale field. Use the button to give both squares the same surroundings, then switch back. The gray itself does not change in either view. The effect can be subtle; it is an observation to make, not a test you need to pass.
Your eye sees a relationship
This kind of neighbouring-colour effect is called simultaneous contrast. A colour’s perceived lightness, hue or vividness can shift with its surroundings. Here, a neutral gray against two very different lightness levels makes the comparison easy to isolate. A stored RGB or HEX value describes the screen colour being specified; it does not capture every aspect of how that colour will appear in a composition.
Colour teaching has long used side-by-side studies to explore these relationships. Josef Albers made observation and repeated comparison central to his Interaction of Color exercises. The useful habit is to look at a colour where it will actually be seen, rather than expecting a detached sample to tell the whole story.
Try it with a colour you already know
Make two equal rectangles in a drawing or presentation app and place a smaller square in each. Duplicate the square so the two copies share the same fill. Give one large rectangle a dark background and the other a light one. Remove shadows, outlines and transparency so those settings cannot explain a difference.
First compare the pair in place. Then put both small squares on one common background. Keep their size unchanged while you compare. This simple control helps you distinguish the colour you entered from the impression produced by the surrounding field.
After that, try coloured backgrounds while leaving the central squares untouched. Notice whether the squares seem warmer, cooler or more vivid. Avoid deciding in advance what you must see. Different colour pairs produce different impressions, and some are much easier to notice than others.
A perception study is not a readability check
The gray squares above contain no lettering. Their apparent difference does not tell you whether a paragraph, icon or button will be readable. Text needs its own foreground–background contrast check at the size and weight you intend to use. A visually interesting colour relationship and a clear reading surface answer different questions.
Also separate this effect from an actual file or display change. This page compares colours together on one screen; it is not a demonstration of printer profiles or differences between devices. If two files contain different values, that is a separate issue to investigate. Start by confirming that the colours, opacity and effects really match.
Compare in place before changing the swatch
When a familiar colour feels unexpectedly dull or bright, pause before replacing it. View it on the final surface, compare it on a shared neutral field, and then decide which appearance serves your purpose. You may still choose a different colour. The difference is that the change follows a deliberate comparison instead of an assumption that the original value was wrong.
Sources and further reading
Background reading on colour interaction and simultaneous contrast. The diagrams and button experiment on this page are original examples.
