Aristotle, in his Ethics, says that there are two types of Justice:
- It is the action of distributing fairly the honors, riches and anything which is shareable, among equals.
- It is the compensation against damages, and in this case those involved are treated AS equal. (this meaning applies to crimes, contracts, etc.)
Equity is an element of that fairness (in distributive justice - type 1), since it means a deep observation, even “touching” the particular actual case instead of relying only in pre-thought abstractions from the law:
“Equity arises when justice is given in a case that is extraordinaire, beyond the general characteristic of a law. Therefore Equity is like a correction that the law needs, because of its abstract characteristic”. - free translation from Aristotle
In a modern sense, Equity is a concept of adapting (modulating) the effects of a law for a specific case, by a Court, considering the particulars of the case beyond abstract formulas from the law.
Also, in a modern sense, Justice is far away from the classic notion of distribution, since it is only related to the valid (logical) hierarchies of norms, that climax in the decision of a Judge:
“Justice is primarily a possible, but not a necessary, quality of a social order regulating the mutual relations of men. (…) Justice is social happiness. It is happiness guaranteed by a social order.” - Hans Kelsen