Here's a graph of the average salary: https://www.salary.com/research/salary/alternate/ob-gyn-salary
$200k to $400k seems to be the salary range.
Keep in mind OB/GYN require a bachelors, medical school & residency. Residency pays approx. $60k/yr.
You're looking at 4 years of bachelors, 4 years of medical school and 4 years of residency. Cost of bachelors at a state school is usually $10k/yr & room board is another $10k/yr. So $40k-80k for bachelors. Medical school can cost $150k-250k. Then you'll be making $60k/yr for another 4 years before making the full obgyn salary.
When you are thinking about money, you have to consider the education cost & the year's you'll be earning no-salary or low-salary...before reaching the actual salary of a obgyn.
Overall money shouldn't be the motivator to do medicine. Medical school is hard and requires full dedication (usually no time for anything else).
In terms of money, if you consider other majors e.g. engineer you can be making $70-90k with just bachelors ($40k-80k cost). On the other hand you'll make $200-$400k as a obgyn but also have a $300k debt after medical school. Engineers can make in the range of $100-120k after 5 years experience (mid career).
On top of all that you have to weight in the interest that you'll be paying on your debt. As a reference if I have a mortgage for 30 years, with 3% interest for $250k I'd be paying approx 1k per month. Doctors are usually paying 6% interest (state loans) or higher and shorter loan terms. So you'll be committing a large chunk of your salary to just paying off the debt.
Once again, money should not be the motivator for doing medicine. Medicine is hard & you can likely make a lot more money with a lot less debt with other majors.
Hope this helps.