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

Code Example 1

rgb(255,255,255)	/*white*/  Hex 	#FFFFFF

Code Example 2

(128,0,128)    Hex  #800080

Code Example 3

rgb(255,255,0)  /* yellow*/  Hex  #FFFF00

Learn ReactJs, React Native from akashmittal.com