fixed color parsing

Multiplying by `(0x100-a)` gives wrong results, for example with color #ee181818 it gives `tmp == 0xeeb0b0b0` but it should be `0xee161616`.