You need to understand the distinction between hex
values and hex
characters. The hex value of FF refers to the value of 255 decimal, while the hex characters "FF" refers to the character/letter "F", followed by the character/letter "F". Each character is an ASCII character, and the character/letter "F" has an ASCII value of decimal 70, which is a hex value of 40.