Another common use is have a drop-shadow effect or bezel of a different color around the main one.
Also, i had a similar situation to yours at finding a reverse color. I ended up simply xoring the color by &H777777. This would give me a color that was always visible and contrasted and it's one line.