At least one of the netpbm formats is ascii-readable (legal C code, infact). If you can find a converter from gif to xxx, you should be able to open xxx with a text editor or even just grep for the colors.