Check out example codes for "how to change the color of an object in unity c# rgb". It will help you in understanding the concepts better.

Code Example 1

void Update ()
             {                         
               if(Input.GetKeyDown(KeyCode.R))
               {                                 
                 gameObject.GetComponent<Renderer>().material.color = new Color(233, 79, 55);
               }             
             }

Learn ReactJs, React Native from akashmittal.com