When a current is passed through a non-magnetic metal with strong spin-orbit coupling, an orthogonal spin current is generated. This spin current can be used to switch the magnetization of an adjacent ferromagnetic layer or drive its magnetization into continuous precession. The interface, which is not necessarily sharp, and the crystallographic structure of the nonmagnetic metal can both affect the strength of current-induced spin-orbit torques. Here, we investigate the effects of interface intermixing and film microstructure on spin-orbit torques in perpendicularly magnetized Ta/Co40Fe40B20/MgO trilayers with different Ta layer thickness (5 nm, 10 nm, 15 nm), greater than the spin diffusion length. Effective spin-orbit torques are determined from harmonic Hall voltage measurements performed at temperatures ranging from 20 K to 300 K. We account for the temperature dependence of damping-like and field-like torques by including an additional contribution from the Ta/CoFeB interface in the spin diffusion model. Using this approach, the temperature variations of the spin Hall angle in the Ta underlayer and at the Ta/CoFeB interface are determined separately. Our results indicate an almost temperature-independent spin Hall angle of in Ta and a strongly temperature-dependent for the intermixed Ta/CoFeB interface.