In Brief CCC 1492
© Libreria Editrice Vaticana Source: vatican.va
Repentance (also called contrition) must be inspired by motives that arise from faith. If repentance arises from love of charity for God, it is called "perfect" contrition; if it is founded on other motives, it is called "imperfect."
Read the full chapter 2. The Sacraments of Healing ¶1420–1532