Race is very strongly correlated with culture. And many cultural traits are crucial to doing work that companies need. It's just very hard to measure one's culture and it's very easy to measure their skin color.
I don't think forcing companies to be diverse per skin color is a good idea. A much better way could be finding aspiring people from underrepresented populations and removing roadblocks on the way of specific people.