What are some of the reliable color sensor circuit?
I assume you want to detect the color of a nearby surface?

My suggestion is to use a light sensor with a flat response over the colors, and 4 LEDs. Light up each LED in turn, and see how much difference that makes in the light sensor reading. You'll have to calibrate for the effectiveness of each LED.

IME an LDR is usable, but it is rather slow.