<div class="legend" style="direction:ltr;line-height:23px;"><div class="legend-content" style="display:inline-block;vertical-align:top;box-sizing:border-box;width:34px;height:23px;overflow:hidden;font-size:15px;border:thin solid #333;background: #3DCF44;color:#202122;text-align:center;" title="#3DCF44"> </div> Partido Verde: 50 seats</div><div class="legend" style="direction:ltr;line-height:23px;"><div class="legend-content" style="display:inline-block;vertical-align:top;box-sizing:border-box;width:34px;height:23px;overflow:hidden;font-size:15px;border:thin solid #333;background: #9D4492;color:#202122;text-align:center;" title="#9D4492"> </div> Partido Social Liberal: 41 seats</div><div class="legend" style="direction:ltr;line-height:23px;"><div class="legend-content" style="display:inline-block;vertical-align:top;box-sizing:border-box;width:34px;height:23px;overflow:hidden;font-size:15px;border:thin solid #333;background: #FF0202;color:#202122;text-align:center;" title="#FF0202"> </div> Partido da Social Democracia: 40 seats</div><div class="legend" style="direction:ltr;line-height:23px;"><div class="legend-content" style="display:inline-block;vertical-align:top;box-sizing:border-box;width:34px;height:23px;overflow:hidden;font-size:15px;border:thin solid #333;background: #A70000;color:#202122;text-align:center;" title="#A70000"> </div> Partido Trabalhista: 24 seats</div><div class="legend" style="direction:ltr;line-height:23px;"><div class="legend-content" style="display:inline-block;vertical-align:top;box-sizing:border-box;width:34px;height:23px;overflow:hidden;font-size:15px;border:thin solid #333;background: #3800DF;color:#202122;text-align:center;" title="#3800DF"> </div> Frente Conservadora: 12 seats</div><div class="legend" style="direction:ltr;line-height:23px;"><div class="legend-content" style="display:inline-block;vertical-align:top;box-sizing:border-box;width:34px;height:23px;overflow:hidden;font-size:15px;border:thin solid #333;background: #002FFF;color:#202122;text-align:center;" title="#002FFF"> </div> Levante Liberal: 25 seats</div><div class="legend" style="direction:ltr;line-height:23px;"><div class="legend-content" style="display:inline-block;vertical-align:top;box-sizing:border-box;width:34px;height:23px;overflow:hidden;font-size:15px;border:thin solid #333;background: #4D7DA4;color:#202122;text-align:center;" title="#4D7DA4"> </div> Partido Centrista : 30 seats</div><div class="legend" style="direction:ltr;line-height:23px;"><div class="legend-content" style="display:inline-block;vertical-align:top;box-sizing:border-box;width:34px;height:23px;overflow:hidden;font-size:15px;border:thin solid #333;background: #FCFF63;color:#202122;text-align:center;" title="#FCFF63"> </div> Partido Libertário : 2 seats</div><div class="legend" style="direction:ltr;line-height:23px;"><div class="legend-content" style="display:inline-block;vertical-align:top;box-sizing:border-box;width:34px;height:23px;overflow:hidden;font-size:15px;border:thin solid #333;background: #FD0641;color:#202122;text-align:center;" title="#FD0641"> </div> Partido Proletário : 4 seats</div><div class="legend" style="direction:ltr;line-height:23px;"><div class="legend-content" style="display:inline-block;vertical-align:top;box-sizing:border-box;width:34px;height:23px;overflow:hidden;font-size:15px;border:thin solid #333;background: #DC0DD9;color:#202122;text-align:center;" title="#DC0DD9"> </div> Partido da justiça social : 18 seats</div><div class="legend" style="direction:ltr;line-height:23px;"><div class="legend-content" style="display:inline-block;vertical-align:top;box-sizing:border-box;width:34px;height:23px;overflow:hidden;font-size:15px;border:thin solid #333;background: #5700C2;color:#202122;text-align:center;" title="#5700C2"> </div> Partido Conservador Liberal: 6 seats</div><div class="legend" style="direction:ltr;line-height:23px;"><div class="legend-content" style="display:inline-block;vertical-align:top;box-sizing:border-box;width:34px;height:23px;overflow:hidden;font-size:15px;border:thin solid #333;background: #DA59F4;color:#202122;text-align:center;" title="#DA59F4"> </div> Iniciativa Feminista: 7 seats</div><div class="legend" style="direction:ltr;line-height:23px;"><div class="legend-content" style="display:inline-block;vertical-align:top;box-sizing:border-box;width:34px;height:23px;overflow:hidden;font-size:15px;border:thin solid #333;background: #0071CD;color:#202122;text-align:center;" title="#0071CD"> </div> Partido do Novo Liberalismo : 17 seats</div><div class="legend" style="direction:ltr;line-height:23px;"><div class="legend-content" style="display:inline-block;vertical-align:top;box-sizing:border-box;width:34px;height:23px;overflow:hidden;font-size:15px;border:thin solid #333;background: #234BB1;color:#202122;text-align:center;" title="#234BB1"> </div> Partido da restauração nacional: 1 seat</div>
Own work  using: <a class="external text" href="https://tools.wmflabs.org/parliamentdiagram/parliamentinputform.html">Parliament diagram tool</a>