When i click on a color it redirects me to a 404 page. What should i do?

In this situation you have to make sure that the Color attribute has archives enabled:

Also you have to make sure you have saved the permalinks after this operation.