Danish psychologist Edgar Rubin's 1915 "Rubin's vase" is the classic case — the same image reads as a black vase or as two facing profiles, and which one is "figure" versus "ground" hinges purely on colour and contrast.
In UI, this is why modals dim the background (pushing the dialog forward as figure), and why designers double-check that the negative space in an icon doesn't accidentally read as its own shape. Baking a hidden shape into negative space — the FedEx arrow — is the same principle used deliberately.
Below, the two interlocking blobs swap which one reads as "figure" every time the colours invert — same shapes, different perception.
When to use
Check whether the negative space in an icon or logo also reads as an intentional shape. For modals and popovers, dim the background to keep the foreground unambiguous.