<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def success(channel, image, hex_str):
 """ Creates an embed UI containing a hex color message Args: channel (discord.Channel):
 The Discord channel to bind the embed to image (str):
 The url of the image to add hex_str (str):
 The hex value Returns: ui (ui_embed.UI):
 The embed UI object that was created """


    hex_number = int(hex_str, 16)

    # Create embed UI object
    gui = ui_embed.UI(
        channel,
        "",
        "#{}".format(hex_str),
        modulename=modulename,
        colour=hex_number,
        thumbnail=image,
    )

    return gui