The chemical reactions and pathways involving a pigment, any general or particular coloring matter in living organisms, as part of the accumulation of pigment.
pigment metabolic process during pigment accumulation