EndyStudioEspañol

Free tool

Minecraft colour codes

The 16 chat colours and the formatting codes in every notation servers use. Click a code to copy it.

The 16 colours

ColourCodeMiniMessageHexJSON
Black black
Dark Blue dark_blue
Dark Green dark_green
Dark Aqua dark_aqua
Dark Red dark_red
Dark Purple dark_purple
Gold gold
Gray gray
Dark Gray dark_gray
Blue blue
Green green
Aqua aqua
Red red
Light Purple light_purple
Yellow yellow
White white

Formatting

EffectCodeMiniMessageJSON
Obfuscated obfuscated
Bold bold
Strikethrough strikethrough
Underline underlined
Italic italic
Reset —

How to use colour codes

Put the code right before the text it colours: &6Gold &fWhite. Formatting codes go after the colour, because a colour code clears bold, italic and the rest: &6&lBold gold.

&r resets everything back to the default colour.

MiniMessage tags

MiniMessage uses tags instead of codes and closes them like HTML: <gold>Gold</gold> <b>bold</b>. Any hex colour works as a tag: <#ffaa00>. Gradients are a single tag: <gradient:#ffaa00:#ff5555>Text</gradient>.

Hex colours

Since Java Edition 1.16, chat, scoreboards, the TAB list and item names can use any colour. Each plugin writes them its own way (&#FFAA00, &x&f&f&a&a&0&0, <#ffaa00>). The gradient text generator outputs all of them.

Frequently asked questions

What is the difference between & and §?

Minecraft itself reads §. Plugins let you type & instead because § is hard to type, and turn it into § before showing the text.

How do I use colours in server.properties?

Write § as § in the motd line, for example motd=§6My §eServer. The vanilla server.properties MOTD only supports the 16 colours, not hex.

Why does my colour code reset bold?

In legacy codes, a colour code cancels every format before it. Put the format after the colour, for example &6&l, not &l&6.

Can I use any hex colour?

On Java 1.16 and newer, yes. Use the gradient text generator to get a hex colour in your plugin's format.