def hex_to_color(color):
    """Convert color in the "#rrggbb" format to a color tuple."""
    red = color[1:3]
    green = color[3:5]
    blue = color[5:7]
    return int(red, 16), int(green, 16), int(blue, 16)
