It is believed that the pencil first turned yellow around 1890. And this was done in order to make it easier to notice it on the desktop. However, the history of graphite pencils is much older than you think.
In the early 19th century, graphite was supplied to America from China, so stationery sellers were eager to emphasize that their products were imported from a mysterious distant Asian country. Yellow in China is the color of reverence and respect, which is why American sellers began to paint Chinese graphite pencils in it - with this they wanted to emphasize the quality of the product. However, according to the historian Henry Petroski, the company that first thought of such a marketing move was the Czech company Koh-i-Noor Hardtmuth. Now most of the slate pencils sold on the market are yellow, only now it no longer means "elite" origin, but rather is a tribute to tradition.
And also the Yellow Pencil - created in 1962, the prestigious design and advertising award of the non-profit organization of the British Association of Designers and Art Directors (London).