# color (Go)

> Coloured terminal output for Go with ANSI escape codes

Source: https://talira.ai/catalog/color-go-y7z3s2fy
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library
- Categories: [libraries / terminal ui](https://talira.ai/categories/libraries/terminal-ui)
- Licence: MIT[^1]
- Pricing: Free and open source[^1]
- Free tier: yes[^1]
- Backed by: [Fatih Arslan](https://talira.ai/orgs/fatih-arslan.md)

color is a Go package for printing coloured and styled text to the terminal with ANSI escape codes, and it works on Windows too. It has helper functions for the standard colours, 24-bit RGB foreground and background colours when the terminal supports them, and colour objects you can combine with attributes such as bold and underline and reuse across your program.

## Links

- GitHub: https://github.com/fatih/color
- Docs: https://pkg.go.dev/github.com/fatih/color

## Problems it solves

- print coloured error and success messages from my Go command-line tool
- make terminal output from a Go program bold or underlined
- colour output in a Go CLI so it also works on Windows terminals

## Features

- standard colour helpers
- 24-bit RGB colours
- combinable attributes like bold and underline
- reusable colour objects
- Windows support

## Trust

Overall: 0.41 out of 1.
Signals: maintenance 0.27, adoption 0.78, momentum 0.52, community 0.66, backing 0.30, extensibility 0.00.

- latest release v1.19.0 8 months ago
- 8.0k GitHub stars
- 43 contributors
- backed by Fatih Arslan

Warnings:

- last commit 4 months ago

## Alternatives

- [go-colorable](https://talira.ai/catalog/go-colorable-zxyx4svp.md): Colorable writer for Windows
- [Lip Gloss](https://talira.ai/catalog/lip-gloss-xkvdga4c.md): Style definitions for nice terminal layouts
- [go-isatty](https://talira.ai/catalog/go-isatty-gd0w1ny3.md): isatty for Go: tell whether output goes to a terminal
- [tablewriter](https://talira.ai/catalog/tablewriter-q5dtry15.md): Text tables for Go in ASCII, Unicode, Markdown or HTML

## Sources

[^1]: https://github.com/fatih/color/blob/main/LICENSE.md (checked 27 Nov 2026)
