def rgb2html(colour):
    """
    Transforms a RGB triplet into an html hex string.

    :param `colour`: a tuple of red, green, blue integers.
    """
    hexColour = '#%02x%02x%02x' % (colour.r, colour.g, colour.b)
    return hexColour.upper()
