Stan Goldberg, who drew Archie comics for more than 40 years, notably a series beginning in 2009 in which an adult Archie finally marries — both Betty and Veronica, in alternate timelines — died on Sunday at a hospice in the Bronx. He was 82.

He had a stroke on July 24, said his son Bennett, who confirmed the death.

Mr. Goldberg was a freelancer for Marvel Comics during the 1960s, working closely with giants of the field like Steve Ditko, Jack Kirby and Stan Lee.

“His artwork was always top quality, always handed in on time and always made my stories look even better than they should have,” Mr. Lee wrote in an introduction to the 2010 collection “Archie: The Best of Stan Goldberg.”

At Marvel he drew comics for teenagers, like Kathy (The Teen-Age Tornado!) and Millie the Model, and he colored many other titles. He devised the distinctive color schemes for superheroes like Spider-Man and the Fantastic Four.