Check out example codes for "hex color unity". It will help you in understanding the concepts better.

Code Example 1

ColorUtility.TryParseHtmlString (hexString, out color);

Learn ReactJs, React Native from akashmittal.com