Get color of pixel at mouse coordinates, in uv editor?

Is it possible to do that?

I know that I can get access to pixel data via image.pixels, but I can’t seem to find a way to get mouse location in the uv editor (relative to the image).

It’s especially frustrating, because, in object mode, clicking anywhere on the image displays a small informative strip at the bottom of the uv editor, which shows mouse location and pixel color.

So, clearly, the data is there, but is there a way to get at it?