Skip to main content
tmux provides extensive color and styling capabilities for customizing the visual appearance of the status line, panes, borders, and more.

Color Support

From colour.c:45-88, tmux supports multiple color systems:

Color Formats

Basic Colors (0-15)

From colour.c:144-181, these are the standard color names:

256 Color Palette

The 256-color palette includes:
  • Colors 0-15: Standard terminal colors
  • Colors 16-231: 6×6×6 RGB cube
  • Colors 232-255: Grayscale ramp

RGB Colors

From colour.c:234-242, RGB colors support hex notation:

X11 Color Names

From colour.c:399-1006, tmux supports X11 color names:
Examples: AliceBlue, AntiqueWhite, DarkOliveGreen, MediumPurple, PaleVioletRed

Grayscale

From colour.c:989-1000, grayscale colors:

Style Syntax

From style.c:59-252, styles are specified as comma-separated attributes:

Basic Style Format

Foreground and Background

Text Attributes

From style.c:217-241, available text attributes:

Combined Styles

Style Options

Status Line Styles

Window Status Styles

Pane Styles

Message Styles

Mode Styles

Color Conversion

From colour.c:298-396, tmux can convert between color formats:

RGB to 256 Color

The colour_find_rgb() function converts RGB to closest 256-color:

256 to RGB

From colour.c:299-370, the color table converts 256 colors to RGB:

256 to 16 Color

From colour.c:372-396, tmux can map 256 colors to basic 16:

Advanced Style Features

From style.c:105-242, tmux supports advanced styling:

Alignment

Range Coloring

Fill Color

List Styling

Style Stack

Color Schemes

Dark Theme Example

Light Theme Example

Solarized Dark

Nord Theme

Terminal Compatibility

Checking Color Support

Terminal Feature Flags

From options-table.c:524-534:

Cursor Styling

From options-table.c:62-65 and 326-339:

Palette Override

From colour.c:1125-1157, you can override the color palette:

Display Panes Colors

Style Testing

Test colors and styles:

Style Best Practices

1

Use consistent color palette

Choose 4-6 colors and use them consistently throughout your configuration
2

Ensure readability

Test foreground/background combinations for sufficient contrast
3

Consider terminal support

Not all terminals support all features (RGB, italics, etc.)
4

Use semantic colors

Use colors that convey meaning (red for errors, green for success)
5

Test in different lighting

Verify your color scheme works in both bright and dim environments
RGB color support requires a terminal that supports true color and proper terminal-features or terminal-overrides configuration.
Use format variables to create dynamic styles that change based on tmux state: