What structure of the hair must be altered in order to create permanent haircolor changes?

What structure of the hair must be altered in order to create permanent haircolor changes?