The very thin space between the glass and the table of the gemstone causes rainbow-like interference colors in the same way very thin fractures do inside transparent minerals.