Class colors

From Wowpedia
(Redirected from Class color)
Jump to: navigation, search

Each class has its own color defined to it in the default UI, per the raid system. The below color codes are held in the RAID_CLASS_COLORS table in SharedXML/Util.lua.


Class RGB
(0-255)
RGB
(0.0-1.0)
RGB Hex
(00-FF)
Description
Death Knight 196 31 59 0.77 0.12 0.23 #C41F3B Red †
Demon Hunter 163 48 201 0.64 0.19 0.79 #A330C9 Dark Magenta
Druid 255 125 10 1.00 0.49 0.04 #FF7D0A Orange
Hunter 171 212 115 0.67 0.83 0.45 #ABD473 Green
Mage 64 199 235 0.25 0.78 0.92 #40C7EB Light Blue
Monk 0 255 150 0.00 1.00 0.59 #00FF96 Spring Green
Paladin 245 140 186 0.96 0.55 0.73 #F58CBA Pink
Priest 255 255 255 1.00 1.00 1.00 #FFFFFF White*
Rogue 255 245 105 1.00 0.96 0.41 #FFF569 Yellow*
Shaman 0 112 222 0.00 0.44 0.87 #0070DE Blue
Warlock 135 135 237 0.53 0.53 0.93 #8787ED Purple
Warrior 199 156 110 0.78 0.61 0.43 #C79C6E Tan

† The Death Knight class color closely matches the "redlink" color (dead local link or missing page color) on most wikis, including Wowpedia.

*The text color shown does not match the color code to allow for readability on all skins.

On Wowpedia

Class colors are defined in Wowpedia's CSS; they can be used on Wowpedia pages via <span> </span> tags, in the format:

<span class="cc-classname">text you want class-colored</span>

where classname is the class name with no spaces or capitals (e.g., cc-deathknight or cc-paladin).

It may be easier to use the {{text}} template instead of hard-coding spans: {{text|<monk>|<Monk>}} --> Monk