Wilhelmina Hill, 77, a former teacher and a retired environmental specialist for the Office of Education, died Tuesday at a hospital in Nairobi, Kenya, after a stroke. She was on a geographic tour of Africa when she was stricken.

Dr. Hill joined the Office of Education in 1949 as an authority on elementary school social studies and environmental education. She was an environmental specialist when she retired in 1972.

She was associate professor of education at the University of Denver from 1939 to 1949 and earlier had been a junior high school and elementary school teacher in Kansas City, Kan.

In 1948, she was adviser to the Japanese Ministry of Education, where she developed a curriculum guide for junior high schools.

Dr. Hill taught summer sessions for elementary school teachers at the universities of Wyoming and North Carolina and at Arizona State Teachers College.

She was the author or coauthor of 59 volumes in her field and served on the editorial board of "The Journal of Environmental Education." She had been a staff representative for the Department of Health, Education and Welfare on the President's Council for Recreation and National Beauty.

Dr. Hill was born in Fishers Island, N.Y. She graducated from the University of Kansas, and earned a master's degree in geography and a doctorate in education from Columbia University's Teachers College.

She was a member of the Society of Women Geographers and a board member of the National Council for Geographic Education. She belonged to the National Council for Social Studies and was a past president of the National Council for Administrative Women in Education.

She was on the D.C. executive board of the National Society of American Pen Women, a chairman of the Pan American Liaison Committee of the Soroptimist Club in Washington and the Pan American Liaison Committee of Women's Organizations.

There are no immediate survivors.

It is suggested that expressions of sympathy be in the form of contributions to the Wilhelmina Hill Scholarship Fund at Madison College in Harrisonburg, Va.