Skip to content

Standard fg colors (SGR 30-37)

Category: sgr · Tags: ECMA-48 Standard · Specification ↗

SGR 30-37 set the foreground text color to one of 8 standard colors: black (30), red (31), green (32), yellow (33), blue (34), magenta (35), cyan (36), white (37). Universally supported. The actual displayed color depends on the terminal's color scheme — "red" in one theme may look very different from "red" in another.

Supported by 4 of 6 backends (67%)

Support Matrix

BackendVersionSupportNotes
Ghostty1.3.1✓ yes
Kitty0.40.0✓ yes
vt1000.1.0✓ yes
xterm.js5.5.0✓ yes
Alacritty0.26.0~ partialBackend returns palette index instead of resolved RGB
WezTerm0.1.0-fork.5~ partialBackend returns palette index instead of resolved RGB

Powered by Termless
Playwright for Terminals