class Sass::Script::Value::Color

def smallest

def smallest
  small_explicit_str = alpha? ? rgba_str : hex_str.gsub(/^#(.)\1(.)\2(.)\3$/, '#\1\2\3')
  [representation, COLOR_NAMES_REVERSE[rgba], small_explicit_str].
      compact.min_by {|str| str.size}
end