Get vector color under mouse

How do you get the color of a vector object under the mouse?