The red line on this plot shows the amount of light emitted per area vs. wavelength, for an object that is 3000 K (the surface temperature of a cool star). Although it emits mostly infrared light, it still emits some visible light. It emits more red light than blue, so it appears red to our eyes.