What law made it illegal to prevent people from voting based on the color of their skin, race, or having been a slave?

A) 14th Amendment
B) 15th Amendment
C) 13th Amendment
D) Civil Rights Act of 1866