---
Product: Aspose.Cells
Platform: typescript
Page Type: reference
Canonical URL: https://reference.aspose.org/cells/typescript/colorscalerule
---

# ColorScaleRule

## Overview

`ColorScaleRule` is an interface in Aspose.Cells FOSS for TypeScript.

**ColorScaleRule** lets developers define a three‑color gradient for conditional formatting using `minColor`, `midColor`, and `maxColor` properties.

Properties: `maxColor`, `midColor`, `minColor`.

## Properties

| Name | Type | Access | Description |
|------|------|--------|-------------|
| `minColor` | `: string` | Read | Gets the min color. |
| `midColor` | `: string` | Read | Gets the mid color. |
| `maxColor` | `: string` | Read | Gets the max color. |

## See Also

- [Aspose.Cells — Enterprise API Reference](https://reference.aspose.com/cells/)