# @sanity/color

> The Sanity color palette.

Latest version **3.0.8** (published 2026-07-24) · MIT license · 0 weekly downloads

## Install

```sh
npm install @sanity/color
pnpm add @sanity/color
yarn add @sanity/color
bun add @sanity/color
```

## Health

**Score 75/100 (B)** — status: active.

Positive: has types; esm support; no vulnerabilities; has provenance; recently updated; high maintenance score; high quality score.

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 3.0.8 |
| Published | 2026-07-24 |
| First published | 2020-06-29 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | >=18.0.0 |
| Dependencies | 0 |
| Unpacked size | 114.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 172 |
| Author | Sanity.io <hello@sanity.io> |
| Maintainers | sanity-svc.npm, sanity-io |
| Keywords | color, palette, sanity |

## Links

- npm: https://www.npmjs.com/package/@sanity/color
- Repository: https://github.com/sanity-io/ui
- Homepage: https://www.sanity.io/
- Issues: https://github.com/sanity-io/ui/issues
- npm.io page: https://npm.io/package/@sanity/color

## Alternatives

- [postcss-color-hex-alpha](https://npm.io/package/postcss-color-hex-alpha.md) — 6.4M weekly downloads
- [randomcolor](https://npm.io/package/randomcolor.md) — 348.0K weekly downloads
- [bows](https://npm.io/package/bows.md) — 1.3K weekly downloads
- [ep_prefer_color_scheme](https://npm.io/package/ep_prefer_color_scheme.md) — 260 weekly downloads
- [coc-yank](https://npm.io/package/coc-yank.md) — 61 weekly downloads

## Recent versions

- 3.0.8 (latest) — 2026-07-24
- 3.0.0-beta.9 (beta) — 2023-12-14
- 2.2.0-alpha.1 (alpha) — 2022-12-18
- 2.1.20 (release-2.x) — 2022-11-24
- 3.0.7 — 2026-07-22
- 3.0.6 — 2024-04-09
- 3.0.5 — 2024-04-05
- 3.0.4 — 2024-04-02
- 3.0.2 — 2024-03-20
- 3.0.0 — 2024-01-12
- 3.0.0-beta.8 — 2023-12-06
- 3.0.0-beta.7 — 2023-11-28
- 3.0.0-beta.6 — 2023-10-26
- 3.0.0-beta.5 — 2023-10-12
- 3.0.0-beta.4 — 2023-10-11
- … 79 more at https://npm.io/package/@sanity/color/versions

## README

# @sanity/color

The Sanity color palette.

```sh
npm install @sanity/color
```

[![npm version](https://img.shields.io/npm/v/@sanity/color.svg?style=flat-square)](https://www.npmjs.com/package/@sanity/color)

## Usage

```js
import {black, hues, COLOR_HUES, COLOR_TINTS} from '@sanity/color'

console.log(black.title)
// "Black"
console.log(black.hex)
// "#101112"

console.log(hues.red['500'].title)
// "Red 500"
console.log(hues.red['500'].hex)
// "#f03e2f"

console.log(COLOR_HUES)
// ["gray", "blue", "purple", "magenta", "red", "orange", "yellow", "green", "cyan"]

console.log(COLOR_TINTS)
// ["50", "100", "200", "300", "400", "500", "600", "700", "800", "900", "950"]
```

## License

MIT-licensed. See [LICENSE](https://github.com/sanity-io/ui/blob/main/LICENSE).

---
_Source: https://npm.io/package/@sanity/color · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
