Hans Riegel, who made the rainbow-colored, fruit-flavored, teddy bear-shaped gelatin sweets known as gummi bears a global favorite, died on Tuesday in Bonn. He was 90.

The cause was heart failure, Haribo, the company he led for nearly seven decades, said in a statement, adding that he had surgery to remove a benign tumor in his brain several months ago.

Mr. Riegel transformed his family-owned company from a local candy maker with 30 workers into an internationally recognized brand with 6,000 employees around the world and annual sales of $2 billion to $2.7 billion.

Mr. Riegel’s father, also named Hans Riegel, founded Haribo in 1920. (The name is an acronym derived from his first and last name and the city where it was registered, Bonn.)