According to the 2012 book Katy Perry, the “Firework” singer noted there were famous songs about California by The Beach Boys and Tupac Shakur, but she wanted to write one from her perspective.