Can the set of all $2^{24}$ colors be expressed as a ternary linear code?
Hint: The number of codewords in a ternary linear code is a power of 3.

That's my best guess for the answer that the setter expects. However, the truth is you can certainly use a ternary linear code to represent all colors, you will just have a little redundancy.