From the root: Righteous
1: morally good : following religious or moral laws: caused by something that you believe is not morally right or fair
2: acting in accord with divine or moral law : free from guilt or sin
H6664 – tsedeq (from 6663 / tsadaq “to be just, be righteous”) – justice, rightness, righteousness
1. what is right or just or normal, rightness, justness (of weights and measures), righteousness (in government), of law
G1343 – dikaiosýnē (from 1349 /díkē, “a judicial verdict”) – properly, judicial approval (the verdict of approval); in the NT, the approval of God (“divine approval”).
1. in the broad sense, the state of him who is such as he ought to be, righteousness; the condition acceptable to God
Psalm 119:62 At midnight I will rise to give thanks to you, because of your righteous ordinances.
Psalm 119:137 You are righteous, Yahweh. Your judgments are upright.
Psalm 119:138 You have commanded your statutes in righteousness. They are fully trustworthy.
Psalm 119:160 All of your words are truth. Every one of your righteous ordinances endures forever.
Psalm 119:172 Let my tongue sing of your word, for all your commandments are righteousness.
Romans 10:3 For they being ignorant of God’s righteousness, and going about to establish their own righteousness, have not submitted themselves unto the righteousness of God.
Righteousness is simply the condition of being acceptable to YHWH. Romans 10:3 shows us that there is a difference between YHWH’s righteousness and our own righteousness. David makes it very clear in Psalm 119 that YHWH and his ordinances and commandments (Torah) are righteous, so it only stands to reason that following and observing YHWH’s ordinances and commandments is what leads us to the state of righteousness that is acceptable to YHWH. Following Torah is righteousness.