If you are single, you must have a modified adjusted gross income under $135,000 to contribute to a Roth IRA for the 2018 tax year, but contributions are reduced starting at $120,000.
If you are married filing jointly, your MAGI must be less than $199,000, with reductions beginning at $189,000.