Skip to content
JS
Package

d3-color

Color spaces! RGB, HSL, Cubehelix, Lab and HCL (Lch).

v3.1.0, 28 Mar 2022ISCESM onlyTypes: NoneCharts and data visualisation
$ npm install d3-color

Key numbers

As of 25 Sept 2026
Weekly downloads
59.2m
+340% over 12 months
Gzip bundle size
-
No Bundlephobia data
Dependencies
0
Direct, from package.json
Last release
4 years ago
v3.1.0
GitHub stars
-
Open issues / PRs
- / -
Contributors
-
Commits, last 52 weeks
-

Downloads

Last week 2026-09-15 to 2026-09-21
025m50m75m100mSept 2025Mar 2026Sept 2026High 81.1m (18 Aug 2026)Low 10.6m (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.

59,174,064 downloads last week, 286,456,209 in the last month. The 12-month change of +340% compares the average of the last 4 weeks with the first 4 weeks of the series.

Releases, last 12 months
044 in total
Latest version
3.1.0, 28 Mar 20224 years ago
First published
29 Mar 2014
Last push to GitHub
-
Repository archived
-
Open issues
-
Open pull requests
-
Commits, last 52 weeks
-
Dependents on npm
821

Major versions

  1. v3 first release 3.0.0, 4 Jun 2021
  2. v2 first release 2.0.0, 19 Aug 2020
  3. v1 first release 1.0.0, 14 Jun 2016
  4. v0 first release 0.0.0, 29 Mar 2014

Recent releases

VersionPublished
3.1.028 Mar 2022
3.0.15 Jun 2021
3.0.04 Jun 2021
2.0.019 Aug 2020
1.4.120 Apr 2020
1.4.025 Sept 2019
1.3.02 Aug 2019
1.2.828 Jun 2019
1.2.728 Jun 2019
1.2.627 Jun 2019
1.2.526 Jun 2019
1.2.426 Jun 2019
1.2.324 Aug 2018
1.2.224 Aug 2018
Module format
ESM onlyFrom package.json type, main and exports fields
TypeScript types
None
Node.js engine range
>=12
Runtimes
-
Unpacked size (npm)
60 kB
Dependencies (0)
None
npm install d3-color

CDN

jsDelivr: 8.2m requests in 30 days
  • jsDelivrhttps://cdn.jsdelivr.net/npm/d3-color@3.1.0/
  • unpkghttps://unpkg.com/d3-color@3.1.0/
  • esm.shhttps://esm.sh/d3-color@3.1.0
Sources: npm registry, npm downloads API, jsDelivr. Data fetched 25 Sept 2026.

Indexability: Not indexed (discovery only): GitHub data not fetched yet.