In Gimp, File > Acquire > Screenshot. Then click on the dropper icon “pick colors from the image” and click somewhere on the image. I think a dialog box will pop up that will show the html number. If not, double-click on that color in Gimp (under all the various icons), and the information will be there.
You can also use gcolor2.
This could interest you: