Rainbow brackets