For many applications, opponent process color works better than RGB or other common graphics spaces. Opponent color encodes a greyscale channel along with two color channels that range red to green and blue to yellow. A simplified version is:
V = (R+G+B)/3
RG = R-G
BY = B - (R+G)/2
Note that the second two channels run -1 to 1.