Text colour changes on mouseover

I have a text (TMP) that i want to act as a link. I couldn’t find a link component, and I don’t know how to darken the colour when moused over. I just want a small visual indicator that it is being moused over. And an slightly darker colour than the mouseover when clicked

public GameObject TimesArchive;

private void OnMouseOver()
{
    
}

private void OnMouseDown()
{
    TimesArchive.GetComponent<TimesArchive>().DeleteLastTime();
}

Edit:

The OnMouseOver() functions and the OnMouseDown are not being called at all.
How can I detect if someone is hovering their mouse over the text, or when the user clicks on it?

Do you have a “Physics Raycaster” on the camera in your scene ?
Also my sure a “Graphics Raycaster” exists on the canvas that contains the text gameobject