ANSI Colors
Terminal Color Code Reference
ANSI Sequence Builder
30
31
32
33
34
35
36
37
90
91
92
93
94
95
96
97
40
41
42
43
44
45
46
47
100
101
102
103
104
105
106
107
Hello ANSI Colors!
[0mecho -e "\e[0mHello ANSI Colors!\e[0m"print("\033[0mHello ANSI Colors!\033[0m")Standard Foreground Colors (30-37)
Color NameCodeBrightPreviewAction
Black
3090████████Red
3191████████Green
3292████████Yellow
3393████████Blue
3494████████Magenta
3595████████Cyan
3696████████White
3797████████Standard Background Colors (40-47)
Color NameCodeBrightPreviewAction
Black
40100Red
41101Green
42102Yellow
43103Blue
44104Magenta
45105Cyan
46106White
47107Style Codes
StyleCodePreviewDescriptionAction
Reset
0ResetResets all styles粗体
1BoldIncreases font weight/brightness暗淡
2DimReduces brightness斜体
3ItalicItalic text (not supported in all terminals)下划线
4UnderlineUnderlined text闪烁
5BlinkSlow blink (disabled in most terminals)反显
7ReverseSwaps foreground and background colors删除线
9StrikeStrikethrough textANSI Color Code Guide
Key Features
- Color Reference — Complete standard 8/16 color ANSI code reference
- 256-Color Mode — Full 256-color cube and grayscale reference
- Sequence Builder — Visually combine foreground, background, and style
- Terminal Preview — See color effects in real time
- Multi-Language Examples — Usage examples in Bash, Python, and more
Use Cases
- Shell script output beautification
- Terminal log level coloring
- CLI tool interface design
- Learn ANSI escape sequences
- Terminal application development reference