The color water quality sensor is a color online monitoring sensor with self-cleaning for long term reliable and maintenance free real time water quality monitoring. The sensor can be widely used in the fields of drinking water, tap water, water pipeline network, groundwater, and sewage.