Why do Infrared LEDs come with different coloured lenses?
Depending of the lens material (and its color), the lens might act as an optical filter. It attenuates visible light but lets the infrared wavelengths pass through. To illustrate this, one could compare the spectral distribution figures between the datasheets of two similar IREDs (Infrared Emitting Diode), just with different lens colors.