The story
Coined by American columnist Herb Caen in the late 1940s, likely reflecting the multiculturalism and exotic character of the city, while also identifying the city with a great historical cultural and intellectual center, as well as possibly implying a moral association with Babylon.
Etymology from Wiktionary, CC BY-SA 4.0.