Look up ANSI escape codes by code number (e.g. 31) or color name (e.g. green). Click any escape sequence to copy it. Leave input empty to see the full reference.
Text Styles
Reset
Bold
Dim
Italic
Underline
Reverse
Strikethrough
Standard Foreground Colors (30–37)
Black
Red
Green
Yellow
Blue
Magenta
Cyan
White
Bright Foreground Colors (90–97)
Bright Black (Gray)
Bright Red
Bright Green
Bright Yellow
Bright Blue
Bright Magenta
Bright Cyan
Bright White
Background Colors (40–47)
Black BG
Red BG
Green BG
Yellow BG
Blue BG
Magenta BG
Cyan BG
White BG
Usage Examples
printf "\e[31mRed text\e[0m\n"echo -e "\e[1;32mBold Green\e[0m"printf "\e[34;47mBlue on White\e[0m\n"printf "\e[0m"marduc812
2026