*831 Opinion
In this case we decide that a good faith settlement between a plaintiff and a defendant under Code of Civil Procedure section 877.6 does not bar the remaining codefendants from seeking indemnity from the settling defendant based on an express contract.
On July 17, 1980, Joseph Ventura was injured while working at a construction site. He sued C. L. Peck Contractors, the general contractor; Century 98 Associates, the owner (Petitioners); and Pierce Engineering Company (Real Party in Interest), a subcontractor.
Mr. Ventura settled his claim against Pierce. Pursuant to Code of Civil Procedure section 877.6, Pierce sought from the trial court a declaration that the settlement was in good faith, and a dismissal of all cross-claims for indemnification. Petitioners opposed dismissal of their cross-claim to the extent the claims were provided for by contract with Pierce. 1 The court granted Pierce’s motion, reasoning that a section 877.6 settlement extinguishes all claims for indemnity, even those provided for by contract. Petitioners filed their petition for a writ of mandate with this court. We issued the alternative writ to definitively settle this important question.
The California Supreme Court in
Li
v.
Yellow Cab Co.
(1975)
“(a) Any party to an action wherein it is alleged that two or more parties are joint tortfeasors shall be entitled to a hearing on the issue of the good faith of a settlement entered into by the plaintiff or other claimant and one or more alleged tortfeasors ....
“(c) A determination by the court that the settlement was made in good faith shall bar any other joint tortfeasor from any further claim against the settling tortfeasor for equitable comparative contribution, or partial or comparative indemnity based on comparative negligence or comparative fault. ” (Italics added.)
Whether Code of Civil Procedure section 877.6 bars claims of indemnity grounded in contract has not yet been squarely faced and answered, but it is not new. It was raised in
Kohn
v.
Superior Court
(1983)
In the case of
Turcon Construction, Inc.
v.
Norton-Villiers, Ltd., supra,
In
City of Sacramento
v.
Gemsch Investment Co.
(1981)
In
Rodriguez
v.
McDonnell Douglas Corp.
(1978)
Finally, this court in
County of Los Angeles
v.
Superior Court
(1984)
We recognize that Code of Civil Procedure section 877 presents a problem. Subdivision (b) of that section provides that settlement “shall discharge the tortfeasor to whom it is given from all liability for any contribution to any other tortfeasors.” (Italics added.) This language does not fit comfortably with that of section 877.6, and suggests the result urged by Pierce. Section 877 was enacted in 1957, well before the introduction of comparative negligence into California jurisprudence. It has not been amended since then. We believe that the Legislature, when it enacted section 877.6, simply neglected to amend 877 to conform to the new rule of comparative negligence. We therefore resolve the ambiguity by holding that the more general language of section 877, subdivision (b) is subordinated to section 877.6, subdivision (c), the more recent and more specific expression of the legislative will.
We are mindful of the differences between indemnity based on contract and indemnity based on equitable considerations. “The obligation of indemnity . . . may arise under the laws of this state from either of two general sources. First, it may arise by virtue of express contractual language .... Second, it may find its source in equitable considerations brought into play either by contractual language not specifically dealing with indemnification or by the equities of the particular case. [Citations.] [t] Each of these two basic forms of indemnity is subject to its own distinctive legal rules and limitations. Those governing so-called “express” indemnity reflect its contractual nature, permitting great freedom of action to the parties in the establishment of the indemnity arrangement while at the same time subjecting the resulting contractual language to established rules of construction. . . .
*834
[S] Within the limitations of the language used, however, an express indemnity clause is accorded a certain preemptive effect, displacing any implied rights which might otherwise arise within the scope of its operation. Thus, as we stated in
Markley
v.
Beagle
(1967)
The implication of the last quoted statement is that when contractual indemnity is applicable, the doctrine of equitable indemnity does not come into play. Thus, the law permits people to voluntarily order their affairs in a manner agreeable to them and equity rarely interferes with a contract knowledgeably executed.
Pierce insists that this result is untenable because of a strong policy favoring settlement of claims.
(Widson
v.
International Harvester Co.
(1984)
We hold that an indemnity claim against a codefendant based on express contract survives a good faith section 877.6 settlement. The Legislature, by specifying equitable comparative indemnity, evidenced its intention to exclude contractual indemnity. The language of section 877.6 is clear, and we are not free to depart from it.
At bench Pierce has agreed by express contract to indemnify C. L. Peck and Century 98 Associates for their losses. Petitioners may enforce that agreement in spite of Pierce’s good faith settlement with plaintiff Ventura. *835 Code of Civil Procedure section 877.6 by its terms has no application to contractual indemnity claims.
Pierce asserts that the indemnity clause is invalid under Civil Code section 1668 (forbidding contracts which exempt anyone from responsibility for his own violation of law); under Civil Code section 2782 (forbidding indemnity clauses for damages arising from the sole negligence of the promisee); and under the theory that the indemnity clause does not apply to the facts of this case. These assertions are out of place here. They must be tested at trial. (See
Huizar
v.
Abex Corp.
(1984)
The alternative writ is discharged. Let a peremptory writ of mandate issue directing the trial court to vacate its order granting Pierce’s motion to dismiss petitioners’ cross-claim for contractual indemnity and to enter a new md different order denying said motion.
Compton, J., and Beach, J., concurred.
The petition of real party in interest for a hearing by the Supreme Court was denied November 15, 1984.
Notes
“Subcontractor [Pierce Engineering Company] shall assume liability and indemnify the contractor [C. L. Peck Contractor] and owner [Century 98 Associates] from and against any liability and all loss, costs, damages, expenses, including attorney’s fees, on account of claims for personal injury, including death, sustained by any person or persons whomsoever, including contractor, their subcontractors and employees of subcontractor, and for injury to or destruction of property of any such person or organization, including loss of use thereof, arising out of:
“(a) The performance of the subcontract work;
“(b) Active or passive negligence of contractor, subcontractor or subcontractor’s agents, employees, invitees or subcontractors;
“(c) Use by subcontractor of contractor’s equipment, labor or facilities as provided in paragraph 7.2 hereof, regardless of whether (1) contractor shall have consented to such use, and (2) the injury or damage shall have been caused by unsafe conditions, the active or passive negligence of contractor or otherwise.”
Huizar
holds that a cause of action for
total
equitable indemnification survives a good faith settlement and supports our analysis that a settlement entered pursuant to Code of Civil Procedure section 877.6
only
discharge indemnification claims based on theories of partial or comparative negligence. (See also
E. L. White, Inc.
v.
City of Huntington Beach
(1982)
