An apparatus was developed for simulataneous electron spin resonance (ESR) and optical absorption experiments on atoms imbedded in rare gas matrices. In a first application the temperature dependence of ESR signals and of optical absorption spectra of K atoms in Ar matrices were studied. One of the numerous ESR lines could be unambiguously assigned to the so-called red triplet absorption due to their identical annealing behaviour at 12-14 K. The correspondence of other ESR lines to optical absorptions is discussed.