How can i change the gameobject color based on RGBA

I can get a string value RGBA(1.000, 1.000, 1.000, 1.000) from one gameObject

I know that it can change the gameObject color in runtime shown as below, but how can i make RGBA(1.000, 1.000, 1.000, 1.000) value to this gameObject?

GameObject.Find("Cube").transform.renderer.materials[0].color=Color.red

Unity has the Color class. In C# you would do:

 GameObject.Find("Cube").transform.renderer.materials[0].color = new Color(1.0,1.0,1.0,1.0);

There is a constructor that takes three parameters so if you are not dealing with the alpha channel you can do:

Color c = Color(0.5, 0.2, 0.6);