unity change scene background color code example
Example 1: unity change text color
// To change the color of a text, see below
GameObject.GetComponent<Text>().color = Color.black;
Example 2: how to change image color unity
using UnityEngine.UI;
public GameObject YourgameObjectWithImage;
YourgameObjectWithImage.GetComponent<Image>().color = new Color32(255, 255, 225, 225);