docs: def valid_color(x: str) -> bool:
      """
      Return ``True`` if ``x`` a valid hexadecimal color string without
      the leading hash; otherwise return ``False``.
      """
      if isinstance(x, str) and re.match(COLOR_PATTERN, x):
          return True
      else:
          return False