parse any rgb or rgba string into a hex color