They can cause a mineral to always be a certain color if they are part of the chemistry of the mineral. However, if there is just a trace of these elements, they still can strongly influence the color of the mineral. Even tiny amounts of these elements can deeply colored minerals. It is erroneously thought that certain elements cause only certain colors and there is some truth to that.