Continuum brightness of solar magnetic elements