Skip to content

ANSI terminal color codes

Standard ECMA-48 SGR foreground codes (30–37, 90–97). Terminal emulators map these to different palettes; HEX shown is a common “Solarized-adjacent” mapping for the web. Learn more: Official reference.

What are ANSI terminal color codes?

ANSI escape sequences color terminal text on Linux, macOS, and Windows consoles. Standard SGR foreground codes 30 through 37 and bright 90 through 97 underpin CLI tools, build logs, and retro TUIs when mapped to sRGB hex.

Working with ANSI terminal colors

Game developers, server admins, and streamers use ANSI terminal color tokens for chat formatting, UI skins, plugin configs, and overlay graphics. Below are 16 reference swatches with copy-ready HEX and format-specific code columns where applicable.

Values are sRGB approximations—engines, shaders, and terminal themes may remap colors. Paste codes into your project, then preview in-engine. For accessible HUD text, check contrast with our contrast checker.

Browse all gaming color references or build harmonies from a base with the color harmony tool.

ANSI terminal colors — FAQ

Are ANSI terminal HEX values exact in-game?

Rendering depends on theme, gamma, and shaders. HEX here is a web-friendly reference for mockups, wikis, and CSS overlays—not a guarantee of in-client pixels.

What does the code column mean on ANSI terminal?

It may show Minecraft § codes, Roblox BrickColor IDs, ANSI SGR numbers, or engine-specific tokens—copy the chip to paste into configs, plugins, or terminal themes.

Can I use ANSI terminal colors commercially?

Game names and marks belong to their publishers. Follow each platform’s fan content, modding, and streaming policies before selling assets that mimic official palettes.

How do I test ANSI terminal palettes for readability?

Pair text and icon colors through the WCAG contrast checker, especially for chat, subtitles, and small HUD labels.