# fatih/color

Color package for Go (golang)

Repository: https://github.com/fatih/color
Canonical: https://ross.abutalabs.com/products/color
Homepage: https://pkg.go.dev/github.com/fatih/color
Language: Go
License: MIT
License Family: permissive
Topics: golang, go, color, ansi, coloring
Last push: 2026-07-24T01:02:27+00:00

## Health v2 (maintenance only)
Score: 77/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 94, release rhythm 43, longevity 100
- inputs: {"age_days": 4580, "days_push": 41, "days_rel": 166, "gap_med": 514, "n_releases_24m": 2}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 7997, forks 643 (observed 2026-08-28T04:10:11.473738+00:00)

## What it is
A Go package for producing colorized terminal output using ANSI escape codes, with Windows support and 24-bit RGB colors. It offers helper functions, composable color objects, and custom print/fprint/sprint function factories.

## Use cases
- add colored output to a Go CLI tool
- print warnings and errors in red in the terminal
- use 24-bit RGB colors in terminal output
- colorize log messages in a Go application
- mix bold, underline, and foreground colors in console output
- write colored text to a custom io.Writer

## When to choose
- you are writing a Go command-line or server app that needs colored terminal output
- you need cross-platform color support including Windows
- you want a small, widely adopted, stable library with a simple API

## When to avoid
- you need full TUI widgets or layout, not just colors (use a TUI framework like Bubble Tea or tview)
- your output is not a terminal (files, CI logs without ANSI support)
- you are not programming in Go

## Facets
- artifact type: library
- maturity: stable
- function: cli, developer-tools, terminal-ui
- domain: developer-tools, cross-platform
- platform: go, windows, cli
- tags: ansi-colors, terminal-output, colorized-logging, rgb-truecolor, command-line, linux, macos

## Member repositories
- fatih/color (main) score 77

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:10:11.473738+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:32:32.875895+00:00, confidence not recorded.
  - readme: https://github.com/fatih/color (fetched 2026-08-28T04:10:11.473738+00:00, sha be2a31fc7785)
  - homepage: https://pkg.go.dev/github.com/fatih/color (fetched 2026-08-29T08:29:28.761029+00:00, sha b53faee4a8d8)
  - site_page: https://go.dev/about (fetched 2026-08-29T08:29:28.774949+00:00, sha 8b6453863a90)
  - site_page: https://pkg.go.dev/about (fetched 2026-08-29T08:29:28.772681+00:00, sha 757852027879)
  - site_page: https://go.dev/project (fetched 2026-08-29T08:29:28.776812+00:00, sha d5ca00bb378b)
- Data as of 2026-08-30T08:39:29.467469+00:00.
