Quantum mechanics
Ultraviolet light is higher in frequency than violet light, such that it is not even in the visible light range. Each photon in the ultraviolet range has a lot of energy, enough to hurt skin cells and cause a sunburn. In fact, most forms of sunburn are not caused by heat; they are caused by the high energy of the sun's UV rays damaging your skin cells. Even higher frequencies of light (or electromagnetic radiation) can penetrate deeper into the body and cause even more damage. X-rays have so much energy that they can go deep into the human body and kill cells. Humans cannot see or feel ultraviolet light or x-rays. They may only know they have been under such high frequency light when they get a radiation burn. Areas where it is important to kill germs often use ultraviolet lamps to destroy bacteria, fungi, etc. X-rays are sometimes used to kill cancer cells.