Reducing palette for Sega Genesis

Hi!
I’m developing a game for Sega Mega Drive / Genesis, so I’m working with 16 colors palettes (I have 4 of them)

When I import my file in SGDK, palette is adapted to the 512 colors the Genesis can show, and many times I have troubles with some colors, so I have to try and try until I get some colors that are correctly rendered in the real console

Is there some plugin or script I could use, so I’m sure I see the real Genesis colors?

Thanks!