Ok, here we go.
Color system in Warcraft is 256 RGB, in other words, it mixes red, green and blue.
Colors values are from 0 to 255 in 16 count system.
0 = 0
1 = 1
2 = 2
3 = 3
4 = 4
5 = 5
6 = 6
7 = 7
8 = 8
9 = 9
a = 10
b = 11
c = 12
d = 13
e = 14
f = 15
There are two symbols for each letter, the first is multiplied by 10, the second is multiplied by 1
So, red value of f5 for example is equal to f*10 + 5*1 = 15*10 + 5*1 = 155, not so red.
If it is 5f, this is 5*10 + f*1 = 50 + 16 = 66, less red.
So, the code in warcraft has two more symbols: for trasparency, they are the second 2. 00 means transparent text, ff means opaque text.
So:
The code begins with |c
Then the two symbols for transparency
The the two for red
The two for green
The two for blue
|cxxxxxxxx <text> |r
Color 000000 is black, color ffffff is white.
If you calculate properly, you will achieve the desired color.
I forgot, there is a table. Here you go.