# gka/chroma.js

JavaScript library for all kinds of color manipulations

Repository: https://github.com/gka/chroma.js
Canonical: https://ross.abutalabs.com/products/chromajs
Homepage: https://gka.github.io/chroma.js/
Language: JavaScript
License: NOASSERTION
License Family: other
Topics: colors, color-manipulation, color-conversion, javascript-library, chroma, manipulate-colors
Last push: 2026-06-01T23:36:19+00:00

## Health v2 (maintenance only)
Score: 79/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 85, release rhythm 59, longevity 100
- inputs: {"age_days": 5379, "days_push": 93, "days_rel": 278, "gap_med": 29, "n_releases_24m": 6}
- flags: no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 10574, forks 551 (observed 2026-08-28T04:10:42.414701+00:00)

## What it is
Chroma.js is a small, zero-dependency JavaScript library for color conversions, manipulation, and color scale generation. It supports reading and outputting colors in many formats, interpolation in various color spaces, and building palettes for maps and data visualization.

## Use cases
- convert colors between hex, rgb, hsl, lab formats
- generate color scales for data visualization
- create color palettes for choropleth maps
- darken or saturate colors programmatically
- interpolate colors in lab or lch color space
- build logarithmic or quantile color scales

## When to choose
- you need robust color conversion and manipulation in JavaScript
- you're building maps or charts and need perceptually uniform color scales
- you want a small zero-dependency color library

## When to avoid
- you need full CSS color functions or design-tool features
- you're working outside JavaScript or the browser/Node ecosystem

## Facets
- artifact type: library
- maturity: stable
- function: data-visualization, image-processing
- domain: data-visualization, web-development, frontend
- platform: browser
- tags: colors, color-conversion, color-scales, color-palettes, zero-dependency, javascript, nodejs

## Member repositories
- gka/chroma.js (main) score 79

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:10:42.414701+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T17:18:31.459228+00:00, confidence not recorded.
  - readme: https://github.com/gka/chroma.js (fetched 2026-08-28T04:10:42.414701+00:00, sha 34ef5d0a0e98)
  - homepage: https://gka.github.io/chroma.js/ (fetched 2026-08-29T08:18:00.593719+00:00, sha 6b5b06ddc8b2)
- Data as of 2026-08-30T08:39:29.467469+00:00.
