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
#f0f is expanded to #ff00ff so basically you just need to calculate the value and the value times 16 for each character, e.g.:
#f0f
#ff00ff
#f98: f = 15 => red = 15 + 15*16 = 255 etc.
#f98