using UnityEngine.UI; public GameObject YourgameObjectWithImage; YourgameObjectWithImage.GetComponent<Image>().color = new Color32(255, 255, 225, 225);