The Mystery of Quark Mass
The difference between a pion and a rho is the spin alignment of the quarks. The pion is a pseudoscalar meson with zero angular momentum. The quarks have spin 1/2 and the spins are "paired" or anti-aligned. In the rho meson, a vector meson, the angular momentum is j=1, indicating parallel spins. Under the influence of the strong color force, the state with spins aligned has a higher energy which shows up as a larger mass energy. The analogy to the higher energy of aligned spins in a magnetic field (Zeeman effect) is instructive, but this difference in energy associated with the color force is enormous.
Georgi comments "There is good reason to believe that most of the mass of the quark that we 'see' in the mass of the proton or the rho is a dynamical effect of quark confinement, that the u and d quarks in the underlying QCD theory actually have masses much smaller than 1/3 the mass of the proton."