Sample Color From Viewport in Texture Paint Mode
The hotkey is S.

It functions two ways, by holding S the current paint colour will be set to whatever is under the cursor. By clicking  RMB while holding S a new swatch will be added to the pallette. (see the end of these release notes)