def hex_color(value):
    """Accepts a hexadecimal color `value` in the format ``0xrrggbb`` and
    returns an (r, g, b) tuple where 0.0 <= r, g, b <= 1.0.
    """
    r = (value >> 8 * 2 & 255) / 255.0
    g = (value >> 8 * 1 & 255) / 255.0
    b = (value >> 8 * 0 & 255) / 255.0
    return r, g, b
