code: def convert_color_to_rrggbb(color):
      
      if not color.startswith("#"):
          rgb = webcolors.html5_parse_legacy_color(color)
          hex_color = webcolors.html5_serialize_simple_color(rgb)
      else:
          hex_color = color
      return webcolors.normalize_hex(hex_color)
docs: The color in "#RRGGBB" format.
  
      :return: the :attr:`color` in "#RRGGBB" format