Isn't this an awesome idea? Instructables user electro18 shows how (relatively) easy is to make a color sensor. It was inspired from an older instructable. There is a short explanation on how a color sensor works in yet another instructable. An LDR is used to measure the amount of reflected light for each of the three LED colors, Red, Green and Blue.