The code for red is "FF0000".
The code is a six-character "word", which chan be divided into three pairs. Each pair indicates the color's levels of Red, Green and Blue respectively, from 0 to 255. Each value should be transformed into hex format, and so the values to put in the code go from 00 to FF.