A whole bunch of copypasted colormatching guides used to be here; I'll readd them when I find them.
This general principle will work on GIMP too:
Another one: