# How do hex code shorcuts work?

**URL:** https://forum.kirupa.com/t/how-do-hex-code-shorcuts-work/230416
**Category:** web dev
**Created:** [June 26, 2007, 4:11am UTC](https://forum.kirupa.com/t/how-do-hex-code-shorcuts-work/230416 "2007-06-26T04:11:37Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![blazes](https://avatars.discourse-cdn.com/v4/letter/b/35a633/32.png) [@blazes](https://forum.kirupa.com/u/blazes)
#### Post date: [June 26, 2007, 4:11am UTC](https://forum.kirupa.com/t/how-do-hex-code-shorcuts-work/230416/1 "2007-06-26T04:11:37Z")

</div>

[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]
