Find Color Codes

Section sign (§) codes

Minecraft Color Codes

Minecraft colors text with a section sign followed by one hex digit, §c for red, §a for green. There are exactly 16 slots, they are fixed, and each one renders as one foreground color in chat and a darker background color behind shadowed text.

Source Minecraft Wiki, Formatting codes

Minecraft logo, on this reference for its section sign (§) codes
The Minecraft logo, shown for identification. It is a trademark of its owner and this site is not affiliated with it.

Chat / sign text

§cThis text is red

Server config (&)

&cThis text is red

Reset formatting

§r

Every code

Minecraft Color Codes: full list

Click any value to copy it. The hex column is what the game actually renders, so you can match it exactly outside the game.

Code Name Foreground Background
§0 black #000000 #000000
§1 dark_blue #0000AA #00002A
§2 dark_green #00AA00 #002A00
§3 dark_aqua #00AAAA #002A2A
§4 dark_red #AA0000 #2A0000
§5 dark_purple #AA00AA #2A002A
§6 gold #FFAA00 #3E2A00
§7 gray #AAAAAA #2A2A2A
§8 dark_gray #555555 #151515
§9 blue #5555FF #15153F
§a green #55FF55 #153F15
§b aqua #55FFFF #153F3F
§c red #FF5555 #3F1515
§d light_purple #FF55FF #3F153F
§e yellow #FFFF55 #3F3F15
§f white #FFFFFF #3F3F3F

Worth knowing

Java Edition and Bedrock share the same 16 codes. Server config files and most plugins accept & in place of §, because § is awkward to type; the server translates it before the client sees it.