CCD or CMOS sensors count photons. They presumably have some natural frequency response curve, but the actual colour discrimination comes from the filters (usually some flavours of RGB, but has been other choices too).
It's those filters, and the colour reconstruction algorithms that change colour response, not the underlying sensor.