Regarding the NES palette, my understanding is it was measured from the R/G/B output levels of various model PPUs running a test program. So it would at least have some hope of being correct. If that's not the case, then yeah it's just crap and putting it in MAME at all is probably of questionable value.