diversus "turned different ways," in L.L. "various," pp. 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. was not the matter 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.