Light is Electromagnetic Radiation
All wavelengths (or energies) of light are the same basic stuff. Together they constitute the “electromagnetic spectrum”. Visible light is a tiny portion of this. Although our eyes cannot detect the rest of the spectrum, we now have detectors that can. We give different names to the different “colors”. We use different units for the different wavelengths – whatever is convenient.