Class colors

From Wowpedia
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 RedNote: Closely matches the "red link" color on Wowpedia for missing pages.
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 169 210 113 0.67 0.83 0.45 #A9D271 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 WhiteNote: The color shown is adjusted on Wowpedia for different skins.
Rogue 255 245 105 1.00 0.96 0.41 #FFF569 YellowNote: The color shown is adjusted on Wowpedia for different skins.
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


Patch changes

  • Legion Patch 7.0.3 (2016-07-19): RAID_CLASS_COLORS moved to FrameXML/Util.lua, Mage changed from 69CCF0 to 40C7EB, and Warlock changed from 9482C9 to 8787ED.[1]
  • Wrath of the Lich King Patch 3.2.2 (2009-09-22): RAID_CLASS_COLORS added in FrameXML/Constants.lua, and Shaman changed from 2459FF to 0070DE.[2]
  • The Burning Crusade Patch 2.0.1 (2006-12-05): Shaman changed from F58CBA to 2459FF.[3]
Shaman was same color as Paladin while neither faction could play both classes.

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

References

 
  1. ^ 2016-07-19, Util.lua, version 7.0.3.22267, near line 1, archived at Townlong-Yak
  2. ^ 2009-09-25, Constants.lua, version 3.2.2.10505, near line 54, archived at Townlong-Yak
  3. ^ Chase Christian 2015-08-15. The history of WoW Class Colors.