What type of music is Amazing Grace?

Most people consider it a gospel hymn (song).