The chemical reactions and pathways resulting in the formation of a pigment, any general or particular coloring matter in living organisms, resulting in pigment accumulation.
pigment biosynthetic process during pigment accumulation