Planck resolved the "ultraviolet catastrophe" by quantizing energy. The spectral radiance is:
The Rayleigh-Jeans classical prediction (B ~ λ⁻⁴T) diverges in the UV. Planck's quantization fixes this. The Sun (5778 K) peaks at ~502 nm (green), but integrated emission appears white/yellowish. The cosmic microwave background (2.725 K) peaks at ~1.1 mm.