easy bit shifting operations… u have 32 bits in color values.
high << 16 | lower & 0xFFFF
reverse
lower = value & 0xFFFF
high = value >> 16
or u use all 3 values and only 8 bits per value. to have 24 bits on each value. a litle bit more complexe compression but possible