Neutron has quark composition udd with spin $\frac 12$. $\Delta^0$ baryon has quark composition udd with spin $3 \over 2$.
On Wikipedia it says that $\Delta$ baryons have mass of approximately $1232 \frac{\mathrm{MeV}}{c^2}$ while the neutron has mass of approximately $~939 \frac{\mathrm{MeV}}{c^2}$.
Why is the neutron lighter than the $\Delta$ baryon when they have the same quark composition? Is it because of the difference in spin?