Think about the spectrum of electromagnetic radiation.
When the frequency of the wave is increasing, the energy is increasing. It goes from infrared to red, to orange, to yellow, to green, to blue, to indigo to violet. The colors of the rainbow reflect the electromagnetic spectrum; ROY G BIV...