class Sass::Script::Color

def smallest

def smallest
  small_hex_str = hex_str.gsub(/^#(.)\1(.)\2(.)\3$/, '#\1\2\3')
  return small_hex_str unless (color = HTML4_COLORS_REVERSE[rgb]) &&
    color.size <= small_hex_str.size
  return color
end