A molecular understanding of complementary chromatic adaptation