Created a function to get a color where the index can be n number of items.