The drama that won the Pulitzer Prize and a smash-hit musical based on the Little Orphan Annie comic strip were among the nominees announced yesterday for top honors in Broadway's annual Tony awards.

In all the nominees included four dramas, four musicals, 32 performers and 20 technicians. Winners will be announced June 5.

Candidates for the best play medallion are: "The Shadow Box," winner of the Pulitzer Prize: "Otherwise Engaged," an import from London: "Streamers" and "For Colored Girls Who Have Considered Suicide - When the Rainbow Is Enuf."

Competing for best musical are: "Annie," "Happy End," "I Love My Wife" and "Side by Side by Sondheim."

All the shows won nominations in others categories. "Annie," based on the long-popular comic strip, topped the musicals list with a total of 10 and "The Shadow Box," the drama lineup with five.

Winners in the 19 competitive categories, as voted upon by about 500 representatives of the theatrical profession, will be honored on a two hour awards program broadcast by ABC television.

Added to the competitive categories is one for "most innovative production of a revival." Altogether, 14 plays and 11 musicals shared in the nominations.

Among the other nominations:

Best actor, drama: Tom Courtenay, "Otherwise Engaged"; Ben Gazzara, "Who's Afraid of Virginia Woolf?"; Al Pacino, "The Basic Training of Pavlo Hummel"; Ralph Richardson, "No Man's Land."

Best actress, drama: Colleen Dewhurst, "Who's Afraid of Virginia Woolf?": Julie Harris, "The Belle of Amherst"; Liv Ullmann, "Anna Christie"; Irene Worth, "The Cherry Orchard."

Best actor, musical: Barry Bostwick. "The Robber Bridgegroom"; Robert Guillaume. "Guys and Dolls"; Raul Julia, "Threepenny Opera"; Reid Shelton, "Annie."

Best actress, musical: Clamma Dale, "Porgy and Bess"; Ernestine Jackson, "Guys and Dolls"; Dorothy Loudon and Andrea McAardle, both "Annie."

Best Musical Score: "Annie," "Happy End," "Godspell," "I Love My Wife."