Luminescent europium and terbium complexes and a mixed Eu(III)-Tb(III) complex were prepared, each with three macrocycles coordinating to a single lanthanide ion to form a trimetallic system, and can be used for the ratiometric sensing of anions in the case of the mixed complex.