What does tax bracket mean in terms of longterm capital gains? Is this referring to job wage income? And what is net investment income tax? Is this wages or capital gain

In 2017, if you can establish that you worked and lived in NV as a resident. Prior to the sell of a home in CA. You're not responsible for taxes at the federal level. But you are responsible for taxes at the 13.3% CA state level. If longterm taxable capital gains are $551,000 and over. If it's not at or over the threshold upon applying the tax exclusion. Then longterm capital gains would default to 0. And you will owe nothing - correct? If I'm inaccurate would the amount owed be under 13.3%? My question is what is owed if the longterm capital gain tax is under $551,000?