Interesting fact of the day. While solar panels do generate some energy from visible light the overwhelming majority is in fact int he infrared part of the spectrum. In fact its peak is well within the infrared but has a black-body like curve.
Since solar panels are essentially just LEDs designed to have maximum surface area this works in both directions. If you apply a voltage to solar panels they will visibly glow in infrared light.