Spanish are just as white was the rest of the Europeans. It was back about 450 years, when the Spaniards came over to the Americas and made what is called the Hacienda. Just like when the USA had their racial times regarding Africans, the Spanish did so to the natives here. What happened was a mixing between white Spanish and Incans, Aztecs, and Mayan descents. After much institutionalized slavery and racism, mixed with rape and destruction of the culture, we end up with people called "Mestizo", or mixed.
What we think of as Latinos, or Mexicans, or other derogatory words are the result of 450 years of slavery, rape and destruction of their culture.