How do hex code shorcuts work?

[FONT=Georgia]I’m reading a book and the stylesheets in it use three character hex codes. But I hate using them. How do I change them to 6 character? I know that if all three chars are the same, then the whole thning is the same. But what is the 6 char code for #f66.[/FONT]