This is the perception of depth based on color depending on the background they’re against. Warms colors tend to appear closer while cool colors appear further away.  The opposite is true against a white background.