Skip to content

Standard bg colors (SGR 40-47)

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

SGR 40-47 set the background color to one of 8 standard colors: black (40), red (41), green (42), yellow (43), blue (44), magenta (45), cyan (46), white (47). Universally supported. As with foreground colors, the actual RGB values depend on the terminal's configured color scheme.

Supported by 5 of 6 backends (83%)

Support Matrix

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

Powered by Termless
Playwright for Terminals