# @csstools/color-helpers

> Color helpers to ease transformation between formats, gamut, etc

Latest version **6.1.1** (published 2026-08-15) · MIT-0 license · 0 weekly downloads

## Install

```sh
npm install @csstools/color-helpers
pnpm add @csstools/color-helpers
yarn add @csstools/color-helpers
bun add @csstools/color-helpers
```

## Health

**Score 60/100 (C)** — status: active.

Positive: esm support; no vulnerabilities; recently updated; high maintenance score.

Warnings: low downloads; no types.

## Facts

| | |
|---|---|
| Version | 6.1.1 |
| Published | 2026-08-15 |
| First published | 2023-02-02 |
| Weekly downloads | 0 |
| License | MIT-0 |
| TypeScript types | none |
| Module format | ESM |
| Node | >=20.19.0 |
| Dependencies | 0 |
| Unpacked size | 57.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1052 |
| Maintainers | jonathantneal, alaguna, romainmenke |
| Keywords | colors, css |

## Links

- npm: https://www.npmjs.com/package/@csstools/color-helpers
- Repository: https://github.com/csstools/postcss-plugins
- Homepage: https://github.com/csstools/postcss-plugins/tree/main/packages/color-helpers#readme
- Issues: https://github.com/csstools/postcss-plugins/issues
- Funding: https://github.com/sponsors/csstools
- npm.io page: https://npm.io/package/@csstools/color-helpers

## Alternatives

- [style-dictionary](https://npm.io/package/style-dictionary.md) — 2.0M weekly downloads
- [postcss-merge-idents](https://npm.io/package/postcss-merge-idents.md) — 1.7M weekly downloads
- [@fontsource/noto-sans](https://npm.io/package/@fontsource/noto-sans.md) — 93.0K weekly downloads
- [uglifycss](https://npm.io/package/uglifycss.md) — 71.6K weekly downloads
- [mat4-interpolate](https://npm.io/package/mat4-interpolate.md) — 23.3K weekly downloads

## Recent versions

- 6.1.1 (latest) — 2026-08-15
- 6.1.0 — 2026-06-25
- 6.0.2 — 2026-02-21
- 6.0.1 — 2026-01-25
- 6.0.0 — 2026-01-14
- 5.1.0 — 2025-08-22
- 5.0.2 — 2025-02-23
- 5.0.1 — 2024-08-14
- 5.0.0 — 2024-08-03
- 4.2.1 — 2024-06-29
- 4.2.0 — 2024-04-21
- 4.1.0 — 2024-03-31
- 4.0.0 — 2023-12-15
- 3.0.2 — 2023-09-02
- 3.0.1 — 2023-08-28
- … 4 more at https://npm.io/package/@csstools/color-helpers/versions

## README

# Color Helpers <img src="https://cssdb.org/images/css.svg" alt="for CSS" width="90" height="90" align="right">

[<img alt="npm version" src="https://img.shields.io/npm/v/@csstools/color-helpers.svg" height="20">][npm-url]
[<img alt="Build Status" src="https://github.com/csstools/postcss-plugins/actions/workflows/test.yml/badge.svg?branch=main" height="20">][cli-url]
[<img alt="Discord" src="https://shields.io/badge/Discord-5865F2?logo=discord&logoColor=white">][discord]

## Usage

Add [Color Helpers] to your project:

```bash
npm install @csstools/color-helpers --save-dev
```

This package exists to join all the different color functions scattered among the Colors 4 and Colors 5 plugins we maintain such as:

* [PostCSS Color Function]
* [PostCSS Lab Function]
* [PostCSS OKLab Function]

## Copyright

This software or document includes material copied from or derived from https://github.com/w3c/csswg-drafts/tree/main/css-color-4. Copyright © 2022 W3C® (MIT, ERCIM, Keio, Beihang).

[cli-url]: https://github.com/csstools/postcss-plugins/actions/workflows/test.yml?query=workflow/test
[discord]: https://discord.gg/bUadyRwkJS
[npm-url]: https://www.npmjs.com/package/@csstools/color-helpers

[Color Helpers]: https://github.com/csstools/postcss-plugins/tree/main/packages/color-helpers
[PostCSS Color Function]: https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-color-function
[PostCSS Lab Function]: https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-lab-functionw
[PostCSS OKLab Function]: https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-oklab-function

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