Adam was created from a handful taken from the whole earth. Thus, his sons carried exactly the nature of the colors of the earth. Some were red, others white and some were black. Some were good-natured, others ill-natured while some were vicious and some virtuous.
Quoting another scholar, al-Ash 'ari