Penalty clauses are legal in agreements in India. But, certain penalty clauses which are not in relation to breach of contract are not legal. You can not charge a penalty for omission or comission which does not breach the agreement. Penalty can only be charged for liquidated damages which occur due to a breach of the agreement.