How it will solve my problem? I expect to pass the string to a method it may either hex code string or named color string and it should return the color.