Gaiden Portrait Palette Editing

I’m curious about editing the palette of Gaiden portraits, as I discovered the Nightmare modules and want to do a bit of an edit of it. How would I go about that?

Here are the byte value of each colors
Thats probably all you need to figure out where the palettes are(btw what nmm are you talking about?can you take a screenshot of it?)

Probably an awful screenshot, but I kind of just googled them and found 'em on the Serenes thread with all of them.

I meant a screenshot of the module when loaded in nightmare.