This is probably a colour space thing. I'd guess that sip is not calibrated or calculated the same way as the NSColor function.
Anyway, if you use DigitalColor Meter you should get the same colours out as the colours that you put in.
As it's a native app I feel I can rely on its results more than I would a third party app.
Also I think your calculation is off slightly. 0.96 is actually 245 not 226.