@classmethod
def CreateWebColor(cls, color):
    """
        Creates a new RGB object from the given web color string.
        
        A web color string is a 6-digit hexadecimal string starting with a hashtag (#).  
        It does not include an alpha value. If the string is not , this method will
        fire an assert.
        
        :param color: the web color
        :type color:  hexadecimal ``str``
        
        :return: a new RGB value
        """
    assert type(color) == str, '%s is not a string' % repr(color)
    assert color[0] == '#' and len(color
        ) == 7, '%s is not a valid web color' % repr(color)
    try:
        red = int(color[1:3], 16)
    except:
        assert False, 'red value %s is out of range' % repr(color[1:3])
    try:
        green = int(color[3:5], 16)
    except:
        assert False, 'green value %s is out of range' % repr(color[3:5])
    try:
        blue = int(color[5:7], 16)
    except:
        assert False, 'green value %s is out of range' % repr(color[5:7])
    return cls(red, green, blue)
