Borrowed from Latin complēmentum. Compare the doublets comprimento and cumprimento.
Practice speaking and memorizing "complemento" and many other words and sentences in Portuguese.