generate random color and converts to desired format