Type of sensor necessary for the path of the line

Hello, I wanted to know what type of sensors are the most common for detecting the line and the different colors in it? I am using an ir sensor but it is not very functional for me when it comes to detecting colors such as silver, blue and green