palette
Print colors to the terminal
Print ANSI terminal colors to stdout. Useful for verifying what your terminal actually renders, checking 24-bit color support, and picking escape codes for scripts.
Install
cargo install --path .
Usage
palette [OPTION]
Options:
(no flag) 16-color swatch (standard + bright blocks)
-d, --detailed Swatch with color names
-l, --long Foreground samples across alternating backgrounds
-L, --long-bright Same as --long with bright background colors
--rgb R,G,B Swatch for a specific 24-bit RGB color
-h, --help
Examples
palette
palette --detailed
palette --long
palette --long-bright
palette --rgb 255,0,128
Standard 16-color swatch:

Detailed view:

Long view:

Long view with bright backgrounds:

RGB swatch:

ANSI support is enabled on startup for Windows terminals that don't default to it (SetConsoleMode). On terminals where ANSI is unavailable, output falls back to plain text.