Colors and text formatting

Choose the right format

Formatting support depends on the command, text field, and your permissions. Legacy codes use an ampersand, such as &aHello. MiniMessage uses tags, such as <green>Hello</green>. Use the format accepted by the feature you are editing; these are two different syntaxes. If codes appear literally, check the format and your access before trying a longer message.

Legacy colors

Place a code before the text to color everything after it. For example, &6Gold &fWhite changes from gold to white. Type a single ampersand before each code.

CodeColorMiniMessage name
&0Blackblack
&1Dark bluedark_blue
&2Dark greendark_green
&3Dark aquadark_aqua
&4Dark reddark_red
&5Dark purpledark_purple
&6Goldgold
&7Graygray
&8Dark graydark_gray
&9Blueblue
&aGreengreen
&bAquaaqua
&cRedred
&dLight purplelight_purple
&eYellowyellow
&fWhitewhite

Legacy formatting

CodeEffectExample
&kObfuscated / magic text&kSecret&r
&lBold&lBold&r
&mStrikethrough&mOld text&r
&nUnderline&nUnderlined&r
&oItalic&oItalic&r
&rReset color and formatting&cRed&r Normal

Put color before formatting: &6&lGolden title&r. Legacy color changes can clear existing decoration, so repeat the decoration after changing color if needed. Reset after styled text to keep later words plain.

Hex colors

Hex colors use six digits in RRGGBB order: red, green, then blue. Each pair ranges from 00 to ff. For fields that accept legacy hex, use &#55ffffHello; MiniMessage uses <#55ffff>Hello</#55ffff>. Hex syntax varies between plugins, so a field accepting ordinary legacy codes may still reject hex.

MiniMessage

You can also use MiniMessage, which is a much easier way to do colors and formatting, surround text with opening and closing tags:

  • Color: <gold>Hello</gold> or <#55ffff>Hello</#55ffff>.
  • Bold: <bold>Hello</bold>.
  • Italic: <italic>Hello</italic>.
  • Underline: <underlined>Hello</underlined>.
  • Strikethrough: <strikethrough>Hello</strikethrough>.
  • Magic text: <obfuscated>Hello</obfuscated>.

Nest styles as <gold><bold>Golden title</bold></gold>, closing the inner tag first. Explicit closing tags keep later text outside the style. <reset> clears open styles in the usual non-strict mode; strict MiniMessage requires matching closing tags and does not allow reset.

Gradients and previews

A gradient changes color across the letters. For example, <gradient:#ff8800:#ff55ff>Sunset</gradient> blends orange into pink. <rainbow>Hello</rainbow> applies a rainbow in fields that allow that tag.

Use the Birdflop RGB generator to choose colors, enter your text, and generate a gradient. Select an output format matching the destination field before copying the result. Use the MiniMessage viewer to preview MiniMessage; a preview does not grant permission to use a style in game.

The official MiniMessage format reference explains supported tags and nesting. Plugins may enable only a subset of tags. For item labels, see item names.