Radiative properties of complex magnetic elements in the solar photosphere