But he remained largely unknown to the general public until 1984, when the seemingly impossible, or at least the unexpected, happened: Mr. Stanton, the quintessential supporting player, became a leading man.
That year he starred as a wandering amnesiac reunited with his family in Wim Wenders’s “Paris, Texas,” which won the Palme d’Or at the Cannes Film Festival, and as a fast-talking automobile thief training Emilio Estevez in the ways of his world in Alex Cox’s cult comedy “Repo Man.”
If there was any remaining doubt about his newly attained star status, it was eliminated in 1986 when he was invited to host “Saturday Night Live.”
Mr. Stanton was never anonymous again, although he continued to make his contributions almost entirely in supporting roles. He played Molly Ringwald’s underemployed father in the teenage romance “Pretty in Pink” (1986), the apostle Paul in Martin Scorsese’s “The Last Temptation of Christ” (1988), a private eye in David Lynch’s “Wild at Heart” (1990), a judge in Terry Gilliam’s “Fear and Loathing in Las Vegas” (1998), the hero’s ailing brother in Mr. Lynch’s “The Straight Story” (1999), a veteran inmate cheerfully testing the electrocution equipment in “The Green Mile” (1999) and Charlie Sheen’s father in “The Big Bounce” (2004).
Mr. Stanton was cast in one of his best-known roles when he was almost 80: that of Roman Grant, a self-proclaimed prophet with 14 wives, on “Big Love,” HBO’s acclaimed series about the everyday lives of polygamists. After his character was killed in the Season 3 finale in 2009, he joked that the show had generated more response than anything else he had done, “except for a couple hundred other movies.”
Mr. Stanton had an impressive singing voice and toured with a male chorus early in his career. He first sang on screen in “Cool Hand Luke” (1967), doing three numbers, including the hymn “Just a Closer Walk With Thee.” He later formed the Harry Dean Stanton Band, which played rock, blues, jazz and Tex-Mex numbers in Los Angeles nightclubs and on tour.
In 2014 he released an album, “Harry Dean Stanton: Partly Fiction,” consisting of songs he sang on the soundtrack of a documentary about him by the same name.
Harry Dean Stanton was born in West Irvine, Ky., a small town southeast of Lexington, on July 14, 1926, the son of Sheridan Stanton, a tobacco farmer who also worked as a barber, and the former Ersel Moberly, a cook.
After serving in the Navy in the Pacific during World War II, he attended the University of Kentucky, where he became interested in drama. Dropping out of college after three years, he moved to Los Angeles and studied acting at the Pasadena Playhouse.
Mr. Stanton — who was often billed as Dean Stanton early in his career to avoid confusion with another character actor, Harry Stanton — made his first television appearance in 1954 in an episode of “Inner Sanctum,” a syndicated mystery and suspense anthology series. His film debut was in “Tomahawk Trail,” a 1957 western starring Chuck Connors, and for the first two decades of his career westerns were his specialty.
Among the numerous TV westerns on which he was seen were “Rawhide,” “Bonanza” and “The Big Valley.” He was also on eight episodes of “Gunsmoke,” playing a different character in each. His last western film was Arthur Penn’s unorthodox “The Missouri Breaks” (1976), starring Marlon Brando and Mr. Stanton’s onetime roommate Jack Nicholson.
Mr. Stanton remained busy to the end. He had small roles in the 2012 movies “The Avengers” and “Seven Psychopaths” and was in episodes of the HBO series “Getting On” in 2013 and 2014. This year, he appeared in a few episodes of “Twin Peaks: The Return” and starred in the feature film “Lucky,” scheduled for release this month. He plays a hard-bitten 90-year-old atheist in the movie, which also stars Mr. Lynch.
Mr. Stanton drew unwanted headlines in 1996 after gunmen broke into his Hollywood home on Mulholland Drive, struck him and tied him up before ransacking the house, stealing cash and electronics and escaping in his Lexus. Two men were captured in a police chase and sentenced to prison.
There was no immediate information on his survivors.
Even as his profile rose, Mr. Stanton expressed some disappointment in his career. “It’s just so frustrating when you’re in a supporting role because you only get to express a part of yourself,” he said in a 1986 interview with The Los Angeles Times.
But he was matter-of-fact about his gift. That same year he told The New York Times Magazine: “I know I’ve got the ability to bring a sense of menace to the screen. I have that specific competence, and it’s generally kept me working.”
He then summed up his adult life. “To put it mildly,” he said, “I was just a very late bloomer.”