Cal Ripken Jr. had four hits and drove in three runs and Allan Ramirez allowed four hits over 5 1/3 innings to lead the Baltimore Orioles to a 10-4 rout of the California Angels tonight.

It was the Angels' 14th loss in 18 games. Ramirez (4-1) gave way in the sixth inning to Sammy Stewart, who earned his fourth save. Mike Witt (4-8) was the loser.

With the victory, the Orioles remained tied with the New York Yankees for first place in the American League East; each has a record of 56-40. Detroit, which had been tied with the two teams, lost to Chicago and dropped a game behind. Toronto also lost and is 1 1/2 games behind.

California led, 1-0, in the second inning as Fred Lynn hit his 18th home run of the season, but the Orioles scored three runs off Witt in the fourth.

John Lowenstein and Ken Singleton singled with one out to put runners at first and third. Joe Nolan drove in the first run with a ground out. Todd Cruz doubled home another run and Rich Dauer made it 3-1 with a single to left.

Baltimore scored another run in the fifth to knock out Witt. Al Bumbry led off with a single to center and took second on a wild pitch. Jim Dwyer walked and Ripken singled home Bumbry. John Curtis relieved Witt and worked out of the inning without further damage.

The Angels cut the margin to 4-3 in the sixth. Ron Jackson doubled off Ramirez, and with one out, Lynn singled home Jackson. Ramirez walked Brian Downing and was relieved by Stewart, who walked Bobby Grich to load the bases. Reggie Jackson drove in the third run with a sacrifice fly to deep right.

The Orioles scored a fifth run in the eighth. Bumbry led off with a single to center, took second on Dwyer's sacrifice and scored on Ripken's single to center.

Baltimore scored five more runs in the ninth. Cruz singled, Dauer doubled and John Shelby was intentionally walked to load the bases. Pinch hitter Dan Ford singled to right to score one run and right fielder Mike Brown overran the ball, allowing two more to score.

Ripken drove in another run with a double to left and Roenicke made it 10-3 with a double.

Bob Boone's RBI single cut the lead to 10-4 in the Angels' half of the inning.