The centre wavelength is the power-weighted mean wavelength:
And the total power is:
where
The above integrals theoretically extend over the entire spectrum, however it is usually sufficient to perform the integral over the spectrum where the spectral density
References
Centre wavelength Wikipedia(Text) CC BY-SA