A rice color sorting machine separates rice grains according to color differences in raw rice arising from anomalies like bits of stone, bad rice, black rice, etc. A high-resolution CCD optical sensor drives a mechanical sorter to separate different color rice from final product. By removing such impurities in this process improves the quality of the rice.