# @palett/color-algebra

> A color converter among RGB, HEX and HSL.

Latest version **0.12.28** (published 2025-03-23) · MIT license · 0 weekly downloads

## Install

```sh
npm install @palett/color-algebra
pnpm add @palett/color-algebra
yarn add @palett/color-algebra
bun add @palett/color-algebra
```

## Health

**Score 30/100 (F)** — status: maintenance-mode.

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types; pre 1.0.

Negative: stale; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.12.28 |
| Published | 2025-03-23 |
| First published | 2022-06-01 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM |
| Node | >=22.0.0 |
| Dependencies | 2 |
| Unpacked size | 4.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Hoyeung Wong |
| Maintainers | hoyeung |
| Keywords | color, palett, color-algebra, rgb, hex, rgb, hsl |

## Links

- npm: https://www.npmjs.com/package/@palett/color-algebra
- Repository: https://github.com/hoyeungw/palett
- Homepage: https://github.com/hoyeungw/palett/rgb#readme
- Issues: https://github.com/hoyeungw/palett
- npm.io page: https://npm.io/package/@palett/color-algebra

## Dependencies (2)

- [@aryth/math](https://npm.io/package/@aryth/math.md) ^0.7.8
- [@palett/convert](https://npm.io/package/@palett/convert.md) ^0.12.28

## 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

- 0.12.28 (latest) — 2025-03-23
- 0.12.27 — 2025-03-23
- 0.12.26 — 2025-03-19
- 0.12.25 — 2025-03-19
- 0.12.24 — 2025-03-18
- 0.12.23 — 2025-03-18
- 0.12.22 — 2025-03-17
- 0.12.21 — 2025-03-17
- 0.12.20 — 2025-03-16
- 0.12.19 — 2025-03-15
- 0.12.18 — 2025-03-15
- 0.12.17 — 2025-03-14
- 0.12.16 — 2025-03-13
- 0.12.15 — 2025-03-13
- 0.12.14 — 2025-03-12
- … 31 more at https://npm.io/package/@palett/color-algebra/versions

## README

## @palett/color-algebra

### A color converter.

<p align="center">
  <a href="https://npmcharts.com/compare/@palett/color-algebra?minimal=true"><img src="https://img.shields.io/npm/dm/@palett/color-algebra.svg" alt="Downloads"></a>
  <a href="https://www.npmjs.com/package/@palett/color-algebra"><img src="https://img.shields.io/npm/v/@palett/color-algebra.svg" alt="Version"></a>
  <a href="https://www.npmjs.com/package/@palett/color-algebra"><img src="https://img.shields.io/npm/l/@palett/color-algebra.svg" alt="License"></a>
</p>

## Usage

### ES6

    import { Rgb, Hsl } from '@palett/color-algebra'

### CommonJS

### Browser

## License

[MIT](http://opensource.org/licenses/MIT)

Copyright (c) 2019-present, Haoyang Wang

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