GO:0046148:   pigment biosynthetic process
The chemical reactions and pathways resulting in the formation of a pigment, any general or particular coloring matter in living organisms, e.g. melanin.