Color codes aren't terribly difficult: it's broken down into 3 section, red green and blue. Each section gets two characters, and those characters are hexadecimal - FF is hexadecimal for 255. So FF0000 would be entirely red, 00FF00 would be entirely green, and 0000FF would be entirely blue.