Generally the minimum for cichlids is 55g.
You might just be able to get away as they don't get very large, 5-6". Be sure to provide plenty of hiding places and frequent water changes, like 30% weekly or twice a week. Other people may chime in to provide some advice.
What are you going to do with the babies though when they breed?