Skip to content
JS
Package

@csstools/convert-colors

Convert colors between RGB, HEX, HSL, HWB, LAB, LCH, and more

v2.0.1, 21 Feb 2026CC0-1.0ESM + CommonJSTypes: NoneAccessibility
$ npm install @csstools/convert-colors

Key numbers

As of 25 Sept 2026
Weekly downloads
1.7m
-10% over 12 months
Gzip bundle size
-
No Bundlephobia data
Dependencies
0
Direct, from package.json
Last release
7 months ago
v2.0.1
GitHub stars
0
0 forks
Open issues / PRs
0 / 2
Contributors
-
Commits, last 52 weeks
14

Downloads

Last week 2026-09-15 to 2026-09-21
0500k1m1.5m2mSept 2025Mar 2026Sept 2026High 1.8m (21 Oct 2025)Low 547.2k (23 Dec 2025)
Weekly npm downloads, one point per week, weeks starting 23 Sept 2025 to 15 Sept 2026. The y axis starts at zero.

1,725,071 downloads last week, 4,702,846 in the last month. The 12-month change of -10% compares the average of the last 4 weeks with the first 4 weeks of the series.

Releases, last 12 months
16 in total
Latest version
2.0.1, 21 Feb 20267 months ago
First published
22 Jan 2018
Last push to GitHub
10 Sept 202614 days before the snapshot
Repository archived
No
Open issues
0
Open pull requests
2
Commits, last 52 weeks
14
Dependents on npm
15

Major versions

  1. v2 first release 2.0.0, 29 Jan 2019
  2. v1 first release 1.0.0, 22 Jan 2018

Recent releases

VersionPublished
2.0.121 Feb 2026
2.0.029 Jan 2019
1.4.028 Jan 2018
1.3.026 Jan 2018
1.1.022 Jan 2018
1.0.022 Jan 2018
Module format
ESM + CommonJSFrom package.json type, main and exports fields
TypeScript types
None
Node.js engine range
>=6.0.0
Runtimes
-
Unpacked size (npm)
205 kB
Dependencies (0)
None
npm install @csstools/convert-colors
  • jsDelivrhttps://cdn.jsdelivr.net/npm/@csstools/convert-colors@2.0.1/
  • unpkghttps://unpkg.com/@csstools/convert-colors@2.0.1/
  • esm.shhttps://esm.sh/@csstools/convert-colors@2.0.1
Sources: npm registry, npm downloads API, GitHub API. Data fetched 25 Sept 2026.

Indexability: Indexed.