Since the 1890s, pencils have been painted yellow. This is because the graphite came from China and in China yellow was the color of royalty. Therefore, pencil manufacturers began coloring their pencils yellow to show they contained the high quality Chinese graphite. And the color stuck.