Check out example codes for "rgb gold". It will help you in understanding the concepts better.

Code Example 1

(255,215,0)  /*gold*/    Hex #FFD700

Learn ReactJs, React Native from akashmittal.com