Here is your answer:
http://ohioline.osu.edu/hyg-fact/2000/2162.html
Marking Queens
Since the queen is the source of all worker bees in the colony, it is important that the beekeeper be certain that the queen is the one originally placed in the colony. It is nearly impossible to determine that a specific queen has been lost if the queen has not been given a unique identifying mark.
It is common practice to mark the queen with a small spot of paint on her back (thorax). A color code exists within the beekeeping industry to indicate the year the queen was introduced.
International Queen Marking Color Code:
Color: For Year Ending In:
White (or gray) 1 or 6
Yellow 2 or 7
Red 3 or 8
Green 4 or 9
Blue 5 or 0
Ernie