1. The actual statistical average or median whatever that number happens to be is the middle class, full stop.
2. The middle class is the ideal standard of living one should expect for people who are neither rich nor poor.
I happen to subscribe to the latter philosophy. The middle class is whatever range of incomes it takes in a given city adjusted for cost of living to own a modest home and save significantly for retirement. SF's median income can't do that.
That used to be how we defined the middle class a generation or two ago, back when home ownership and solid retirement plans were more common.
Nowadays it's less common to make enough income to support that lifestyle in many cities and people who can afford it are being increasingly referred to as rich.
And ability to save for retirement is merely a signal too - it has never been used as any kind of barometer for what is middle class.
If we're talking about middle class as it relates to income - which is what people mean the vast majority of the time they use the phrase - then $71k is middle class, full stop. If you exclude the bottom 20% and the top 20% of incomes (the widest generally accepted income range for middle class) you get $47-140k. And this is household income, not personal income.
San Francisco is the outlier in terms of salary, and if you try to project that onto the US as a whole, you end up with statements like "As for $71k I would not personally define that as middle class."