Colour of Diamond

I am trying to understand how diamonds and other gemstones gets its colours?