using UnityEngine.EventSystems;
public void OnClick()
{
GameObject target = EventSystem.current.currentSelectedGameObject;
// あとは色を取得したりとか...
Image img = target.GetComponent<Image>();
print("#"+ColorUtility.ToHtmlStringRGB(img.color));
}