why would a molecule change color under acidic or basic conditions?

1 answer

Indicators do that. They change from acid form to basic form; one form has one color and the other form another color.