The connection between the wavelength and the bandgap is that the energy of the bandgap is the minimum energy that is needed to excite an electron into the conduction band.
Wide bandgap semiconductors are associated with a high breakdown voltage.