Hash codes only identify uniqueness in an object instance, they are not meant to reconstruct the object from its hash code.
You should be using the
Color.FromArgb
and
Color.ToArgb
to get the values you need. You can't reconstruct the color from the color's hash code.
[Edit]
Here
is a great discussion[
^] on the use of hash codes.
Also read
MSDN documentation[
^] on the do's and don'ts of working with hash codes.
[/Edit]