Inés is the Spanish form and Inês is the Portuguese form of Agnes, from the Greek "pure" or "chaste". Inez is an American spelling variant.
Also used in English-speaking communities, without an accent: Ines.