# qolor

> Simple color parser and converter

Latest version **2.3.7** (published 2025-04-07) · 0 weekly downloads

## Install

```sh
npm install qolor
pnpm add qolor
yarn add qolor
bun add qolor
```

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: stale; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.3.7 |
| Published | 2025-04-07 |
| First published | 2017-09-02 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 23.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | JMX |
| Maintainers | kekscom |

## Links

- npm: https://www.npmjs.com/package/qolor
- Repository: https://github.com/kekscom/Color
- Homepage: https://github.com/kekscom/Color#readme
- Issues: https://github.com/kekscom/Color/issues
- npm.io page: https://npm.io/package/qolor

## Recent versions

- 2.3.7 (latest) — 2025-04-07
- 2.3.6 — 2025-01-20
- 2.3.5 — 2024-02-05
- 2.3.4 — 2024-02-05
- 2.3.3 — 2020-03-21
- 2.3.2 — 2020-02-10
- 2.3.1 — 2020-02-10
- 2.3.0 — 2020-02-10
- 2.2.1 — 2019-10-01
- 2.2.0 — 2018-02-09
- 2.1.0 — 2017-09-02
- 2.0.7 — 2017-09-02
- 2.0.6 — 2017-09-02
- 2.0.5 — 2017-09-02
- 2.0.4 — 2017-09-02

## README

# Qolor

A simple color tool for adjusting hue, saturation, lightness and alpha of a given RGB(A) color.


## Documentation is outdated!

Usage:

~~~ js
var col = new Qolor('#ffcc00');
col.H = 120; // hue, 0..360
col.S = 0.5; // saturation, 0..1
col.L = 0.5; // lightness, 0..1
col.A = 0.5; // alpha, 0..1
~~~

Parameter for new Qolor(...) can be in any of these:

 * #0099ffAA
 * #09fA
 * #0099ff
 * #09f
 * rgb(64, 128, 255)
 * rgba(64, 128, 255, 0.5)

Note: if you pass hex values to it, toString() will return hex values too. If you do rgba(), it'll return rgba() accordingly.

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