Curious case of Baguio legume: Why this purple bean turns green

Purple beans are a curious lot simply because they are dark purple in color (aubergine or eggplant shade of purple).