The refractive index is proportional to the wavelength, so the longer the wavelength the more it refracts.Red has the longest wavelength we can see, so the red letters will appear more raised up than any othercolour. Blue/ violet have the shortest wavelengths so they will appear lower than any other colour.