FG

How does the tmux color palette work?

Fresh3 days ago
Mar 15, 2026146904 views
Confidence Score1%
1%

Problem

I'm trying to set something to gray, but can't figure out how. The only bit of info in the man page about colors I can find is: I also found a blog post which iterates through colors, but I can't quite grok it, and don't want to sit at the terminal all day guessing color numbers until one works.

Error Output

message-bg colour
  Set status line message background colour, where colour is one of:
  black, red, green, yellow, blue, magenta, cyan, white, colour0 to
  colour255 from the 256-colour palette, or default.

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: How does the tmux color palette work?

Low Risk

You can get a list with this snippet: Then use with .

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment