terminal-colors
A practical collection of terminal color references, ANSI escape codes, 256-color values, truecolor examples, and color palettes.
Made for people who spend way too much time making their terminal look good.
What's inside?
| Reference | Description | | --- | --- | | ansi.md | Standard ANSI colors, styles, and escape sequences | | 256-colors.md | xterm 256-color reference and usage | | truecolor.md | 24-bit RGB terminal colors | | palettes/catppuccin.md | Catppuccin terminal palette reference |
Quick Start
ANSI
printf '\033[31mRed\033[0m\n'
printf '\033[32mGreen\033[0m\n'
printf '\033[34mBlue\033[0m\n'256 Colors
printf '\033[38;5;208mOrange\033[0m\n'
printf '\033[38;5;45mCyan\033[0m\n'Truecolor
printf '\033[38;2;255;100;50mRGB color\033[0m\n'The general truecolor format is:
Foreground: ESC[38;2;<R>;<G>;<B>m
Background: ESC[48;2;<R>;<G>;<B>m
Reset: ESC[0mTest Your Terminal
Run this:
printf '\033[1mBold\033[0m '
printf '\033[31mRed\033[0m '
printf '\033[32mGreen\033[0m '
printf '\033[34mBlue\033[0m '
printf '\033[38;5;208m256\033[0m '
printf '\033[38;2;255;100;200mTruecolor\033[0m\n'If everything renders correctly, your terminal is ready to cook.