def METHOD_NAME(solid_brush):
    """Convert WPF brush to hex color"""
    color = solid_brush.Color
    color_hex = ''.join(
        '{:02X}'.format(int(x)) for x in
        [color.A, color.R, color.G, color.B]
        )
    return '#' + color_hex