The degree of antigenic similarity between the tissues of different individuals, which determines the acceptance or rejection of allografts.