def color_spot(htmlcolorcode, text=None):
    """
    HTML snippet: span with class 'colorspot' and `htmlcolorcode`
    as background color
    """
    if text is None:
        text = htmlcolorcode
    return u'<span class="colorspot" style="background-color:%s;">&nbsp;&nbsp;&nbsp;</span>&nbsp;%s' % (htmlcolorcode, text)