turns out the smallest amount of bits for a palette is 4 but i went with 6. 4 is 2 bits for hue and 2 bits for darkness/lightness. 6 is 2 bits for r, g, and b. i went with 6 bits and i have 64 colors.