Definitely the wall color if the rooms will be two different colors, paint it the color that will be seen the most. For instance, in my last house I had this type of walkway going from my dining room to the kitchen. The dining room was the first room you saw when you entered the front door, so I chose to paint it the color of the dining room wall. Hope this helps!
Q
Transition Color between rooms
Q