Changing HEX in MAC and WIN

hello, i have a file with some code to make transitions between colors. My problem is that it works perfect in WIN, but on Mac when I publish I get all diffrent colors.

the code is in the attach file.