The V5 Optical Sensor can detect colours (including grayscale) as a hue and RGB value. Can also detect short ranges and gestures.