Building DateColors: A Date-to-Hex JavaScript Plugin

I'm working on a project which contains a collection of 40 to 50 items. None of the items have photos or other distinguishing visual indicator, so I wondered... Could I add a difference in color based on the date of each item in the collection?