Binding of a single divalent cation directly correlates with the blue-to-purple transition in bacteriorhodopsin.