I\'ve been using 3-digit hex color values in CSS for a long time: #fff, #999, #069, etc. I can see how the repeating letters/numbers a
#fff
#999
#069
3 digit CSS code is short for 6 digits": #06a; is #0066aa; Each two digits represent a number from 0 to 255. Converting these values to hex and back is all you need.