Created function to convert numbers to colors