The frequency and energy of a quantum of electromagnetic radiation are directly proportional. This means that as the frequency increases, so does the energy. This relationship is described by the equation E = hf, where E is the energy, f is the frequency, and h is Planck's constant.