The invention relates to hard magnets that include an intermetallic compound having the general composition