Apologies in advance as English is not my first language.
As per the question: recently discussing gendered roles in a workshop with men and the question came up, and I realized I did not know how the "pink for girls, blue for boys" social convention originated. It persists, heavily, in many societies to this day. Thanks!
While you wait for new answers, take a look at this old one from /u/chocolatepot