Question: what is the relationship between the color of light and the amount of energy?
Answer: Yes, they might have the same energy. If light is defined by power intensity then all colors of same intensity have the same energy if consumed at the same length of time. The only difference is that light of shorter wavelength (into the blue and violet) consists of fewer photons, thus the energy per photon is higher.