Find Color Codes

Chat tags ([c/RRGGBB:text])

Terraria Color Codes

Terraria colors chat text with a tag rather than a code table. You write [c/RRGGBB:text] and the game renders that text in the hex value you gave it, so any of the 16 million sRGB colors is available instead of a fixed sixteen. The fixed palette in Terraria is somewhere else entirely: item rarity, where each tier has one exact color the game uses for item names.

Source Terraria Wiki, Rarity

Terraria logo, on this reference for its chat tags ([c/rrggbb:text])
The Terraria logo, shown for identification. It is a trademark of its owner and this site is not affiliated with it.

Color a phrase

[c/FF2864:This text is red.]

Short form

[color/96FF96:Green text]

Item in chat

[i:2]

Every code

Terraria 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.

Tier Rarity value Hex Chat tag
Gray -1 #828282 [c/828282:text]
White 0 #FFFFFF [c/FFFFFF:text]
Blue 1 #9696FF [c/9696FF:text]
Green 2 #96FF96 [c/96FF96:text]
Orange 3 #FFC896 [c/FFC896:text]
Light Red 4 #FF9696 [c/FF9696:text]
Pink 5 #FF96FF [c/FF96FF:text]
Light Purple 6 #D2A0FF [c/D2A0FF:text]
Lime 7 #96FF0A [c/96FF0A:text]
Yellow 8 #FFFF0A [c/FFFF0A:text]
Cyan 9 #05C8FF [c/05C8FF:text]
Red 10 #FF2864 [c/FF2864:text]
Purple 11 #B428FF [c/B428FF:text]
Amber (Quest) -11 #FFAF00 [c/FFAF00:text]

Worth knowing

Rarity runs from Gray at -1 up to Purple at 11, and the numbers are what the game files use. Two tiers are missing from the table below because they have no single value: Rainbow (Expert, -12) and Fiery Red (Master, -13) both animate through a cycle rather than sitting on one hex.