No, it's correct. That's the way RGB is calculated.
In your example: RGB ( 120, 255, 129 ) it would be
65536 * 129 + 256 * 255 + 120
Multiplication takes precedence over addition, so you then get:
8454144 + 65280 + 120
And then finally:
8519544