Separated color hash function from index, added hex value, and other things