def wx_color_to_html_color(wx_color):
    """Convert a wxPython color to an HTML color string."""
    rgb = wx_color.GetRGB()
    green_blue, red = divmod(rgb, 256)
    blue, green = divmod(green_blue, 256)
    return '#%02x%02x%02x' % (red, green, blue)
