The temperature of any object in space is the equilibrium of incomming energy and outgoing energy. In the case of light it's the equilibrium between the energy which is absorbed and the energy which is radiated.
One can assume a lambertian surface https://en.wikipedia.org/wiki/Lambertian ...