diversity (n.)youdaoicibaDictYouDict[diversity 词源字典]
mid-14c., "quality of being diverse," mostly in a neutral sense, from Old French diversité (12c.) "difference, diversity, unique feature, oddness:" also "wickedness, perversity," from Latin diversitatem (nominative diversitas) "contrariety, contradiction, disagreement;" also, as a secondary sense, "difference, diversity," from diversus "turned different ways" (in Late Latin "various"), past participle of divertere (see divert).

Negative meaning, "being contrary to what is agreeable or right; perversity, evil" existed in English from late 15c. but was obsolete from 17c. Diversity as a virtue in a nation is an idea from the rise of modern democracies in the 1790s, where it kept one faction from arrogating all power (but this was not quite the modern sense, as ethnicity, gender, sexual identity, etc. were not the qualities in mind):
The dissimilarity in the ingredients which will compose the national government, and still more in the manner in which they will be brought into action in its various branches, must form a powerful obstacle to a concert of views in any partial scheme of elections. There is sufficient diversity in the state of property, in the genius, manners, and habits of the people of the different parts of the Union, to occasion a material diversity of disposition in their representatives towards the different ranks and conditions in society. ["Federalist" #60, Feb. 26, 1788 (Hamilton)]
Specific focus (in a positive sense) on race, gender, etc. is from 1992.[diversity etymology, diversity origin, 英语词源]