apply extracted color rules