The Beatles wrote into their contracts for American concerts that they would not play in front of segregated audiences.