# lucasb-eyer/go-colorful

A library for playing with colors in go (golang).

Repository: https://github.com/lucasb-eyer/go-colorful
Canonical: https://ross.abutalabs.com/products/go-colorful
Language: Go
License: MIT
License Family: permissive
Topics: rgb-color, compare-colors, rgb-space, cie-spaces, go, colorspace, hcl, palette
Last push: 2026-08-02T09:05:14+00:00

## Health v2 (maintenance only)
Score: 88/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 95, release rhythm 72, longevity 100
- inputs: {"age_days": 4943, "days_push": 31, "days_rel": 31, "gap_med": 163.0, "n_releases_24m": 3}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1254, forks 71 (observed 2026-08-28T04:04:08.707889+00:00)

## What it is
A Go library for storing, converting, and manipulating colors across many color spaces including RGB, HSL, HSV, hex, CIE-Lab, CIE-Luv, HCL, HSLuv, and Oklab. It implements Go's color.Color interface and provides perceptually meaningful color distance and blending utilities.

## Use cases
- convert colors between rgb and lab color spaces in go
- generate distinct random colors for players or chart series
- compare how similar two colors are perceptually
- create color palettes with even perceptual spacing
- blend or interpolate colors smoothly
- parse hex color strings and convert to hsl or oklab

## When to choose
- you need accurate color space conversions in a Go program
- you need perceptually uniform color distance or interpolation
- you want to generate visually distinct color palettes
- you need gamma-correct linear RGB for rendering

## When to avoid
- you need image file decoding or pixel-level image processing
- you work in a language other than Go
- you need color quantization or palette extraction from images

## Facets
- artifact type: library
- maturity: stable
- function: image-processing, graphics, math
- domain: graphics, data-visualization
- platform: go, cross-platform
- tags: color-spaces, cie-lab, oklab, hsluv, palette-generation, color-distance, rgb, game-development, algorithms

## Member repositories
- lucasb-eyer/go-colorful (main) score 88

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:08.707889+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-30T05:07:24.856225+00:00, confidence not recorded.
  - readme: https://github.com/lucasb-eyer/go-colorful (fetched 2026-08-28T04:04:08.707889+00:00, sha ffcb2b8d0b6a)
- Data as of 2026-08-30T08:39:29.467469+00:00.
