A chromophoric switch based on pseudorotaxanes.