def blend_html_colour_to_white(html_colour, alpha):
html_colour = html_colour.upper()<EOL>has_hash = False<EOL>if html_colour[<NUM_LIT:0>] == '<STR_LIT:#>':<EOL><INDENT>has_hash = True<EOL>html_colour = html_colour[<NUM_LIT:1>:]<EOL><DEDENT>r_str = html_colour[<NUM_LIT:0>:<NUM_LIT:2>]<EOL>g_str = html_colour[<NUM_LIT:2>:<NUM_LIT:4>]<EOL>b_str = html_colour[<NUM_LIT:4>:<NUM_LIT:6>]<EOL>r = int(r_str, <NUM_LIT:16>)<EOL>g = int(g_str, <NUM_LIT:16>)<EOL>b = int(b_str, <NUM_LIT:16>)<EOL>r = int(alpha * r + (<NUM_LIT:1> - alpha) * <NUM_LIT:255>)<EOL>g = int(alpha * g + (<NUM_LIT:1> - alpha) * <NUM_LIT:255>)<EOL>b = int(alpha * b + (<NUM_LIT:1> - alpha) * <NUM_LIT:255>)<EOL>out = '<STR_LIT>'.format(r, g, b)<EOL>if has_hash:<EOL><INDENT>out = '<STR_LIT:#>' + out<EOL><DEDENT>return out<EOL>
:param html_colour: Colour string like FF552B or #334455
:param alpha: Alpha value
:return: Html colour alpha blended onto white