See Skinning Images If you can use GIFs then Biochrome or Biotint will do what you want. If you want to change a color to say match a background (just a guess) then setting that color to transparent will also do the trick.
It should be quite possible just to change the pallete entry for the color you want into the one you need if you want to have a little fun with pack and unpack.