The hyperbolic terms for \(\mathrm{SL}(3)\) and \(\mathrm{SU}(3)\)