Abstract
The effect of confinement on the magnetic moment of a quark has been studied in a simple independent-quark model based on the Dirac equation with a power-law potential. The magnetic moments so obtained for the constituent quarks, which are found to be significantly different from their corresponding Dirac moments, are used in predicting the magnetic moments of baryons in the nucleon octet as well as those in the charmed and b-flavored sectors. We not only get an improved result for the proton magnetic moment, but the calculation for the rest of the nucleon octet also turns out to be in reasonable agreement with experiment. The overall predictions for the charmed and b-flavored baryons are also comparable with other model predictions.