Almost all colour astrophotographs you see are made up of a composite of many bands, like UV, IR, X-ray, etc (and visible), with colours mapped to the different wavelengths. The instruments collect many wavelengths because it allows us to see through certain things, as well as recognise certain elements and phenomena from their spectrum.