You can think of light as if it were Very small particles (called photons). Light has different colours because these particles have different energies. X-rays are just another type of light, just one that your eyes can’t see. (Infrared light might be another one you have heard of). X ray particles carry a lot of energy, that’s why we can use them to see through your body, but that’s also what can make them dangerous if not used carefully.