Infrared has less energy than the color red which is one side of the visible spectrum and ultraviolet has higher energy than violet which is on the other side of the spectrum.