colorGenerator Function added to create hex color codes