Text this: Color discrimination properties arising from optimal decoding in the early stages of visual systems