How pearls get their various natural colors

Does anyone know how some pearls get their various natural colors?
There are so few with natural, not dyed, gold. Any will
be much appreciated!