The story
- French · derived frompéril jaune
- English todayyellow peril
Of yellow + peril, modeled on earlier French péril jaune. Compare yellow as a racist term for East Asian people. Attested in English from the 1890s. The French cognate is attested from the 1880s.
Etymology from Wiktionary, CC BY-SA 4.0.