# bgrins/TinyColor

Fast, small color manipulation and conversion for JavaScript

Repository: https://github.com/bgrins/TinyColor
Canonical: https://ross.abutalabs.com/products/tinycolor
Homepage: https://bgrins.github.io/TinyColor/
Language: JavaScript
License: MIT
License Family: permissive
Topics: color, javascript
Last push: 2024-06-26T15:48:44+00:00

## Health v2 (maintenance only)
Score: 23/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 5544, "days_push": 798, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 5245, forks 443 (observed 2026-08-28T04:09:13.626169+00:00)

## What it is
TinyColor is a small, fast, dependency-free JavaScript library for parsing, manipulating, and converting colors. It accepts permissive input formats (hex, RGB, HSL, HSV, names) and provides conversions plus utility functions like lighten, darken, and color scheme generation.

## Use cases
- convert colors between hex, rgb, hsl, and hsv in javascript
- parse user-typed color strings permissively
- lighten or darken a color programmatically
- generate color schemes like triad, tetrad, analogous, or monochromatic
- find the most readable text color for a background
- manipulate css colors in a browser or node app

## When to choose
- you need lightweight color parsing and conversion with zero dependencies
- you want permissive handling of many color input formats
- you need color manipulation utilities like lighten, saturate, or greyscale in javascript

## When to avoid
- you need a full color picker UI component
- you require wide-gamut or color-space-accurate conversions like OKLCH or Lab
- you need color management for images or graphics rendering pipelines

## Facets
- artifact type: library
- maturity: stable
- function: serialization, developer-tools
- domain: web-development, frontend, graphics
- platform: browser, cross-platform
- tags: color-manipulation, color-conversion, color-parsing, javascript, no-dependencies, nodejs

## Member repositories
- bgrins/TinyColor (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:09:13.626169+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:59:35.537480+00:00, confidence not recorded.
  - readme: https://github.com/bgrins/TinyColor (fetched 2026-08-28T04:09:13.626169+00:00, sha 7e0a0005752b)
  - homepage: https://bgrins.github.io/TinyColor/ (fetched 2026-08-29T08:54:58.426741+00:00, sha 81c7b42156dc)
- Data as of 2026-08-30T08:39:29.467469+00:00.
