Reference

Color & Formatting Codes

Minecraft 1.21.8. Use these in signs, chat, /tellraw, item names, lore, world names, and more. As of 1.16, you can also use any hex color via §#RRGGBB. See the full reference table with &, name, and MOTD formats.

Colors

Black
#000000
§0
Dark Blue
#0000AA
§1
Dark Green
#00AA00
§2
Dark Aqua
#00AAAA
§3
Dark Red
#AA0000
§4
Dark Purple
#AA00AA
§5
Gold
#FFAA00
§6
Gray
#AAAAAA
§7
Dark Gray
#555555
§8
Blue
#5555FF
§9
Green
#55FF55
§a
Aqua
#55FFFF
§b
Red
#FF5555
§c
Light Purple
#FF55FF
§d
Yellow
#FFFF55
§e
White
#FFFFFF
§f

Formatting

Bold
Bold
§l
Italic
Italic
§o
Underline
Underline
§n
Strikethrough
Strikethrough
§m
Obfuscated
Obfuscated
§k
Reset
(resets all)
§r

Hex colors (1.16+)

Any 6-digit hex color works in /tellraw JSON, item components, or signs (with the §# shorthand).

Preview
§#FF8800

Live composer

Type with § codes — preview updates as you type. Copy the encoded string for in-game use.

Hello world! 1.21
§6Hello §lworld!§r §c1.21