Pick a Color from a Texture

I ended up solving this with the below material with help from the forums and RyanB.