def is_color(value):
if not value or not isinstance(value, string_types):<EOL><INDENT>return False<EOL><DEDENT>if value[<NUM_LIT:0>] == '<STR_LIT:#>' and len(value) in [<NUM_LIT:4>, <NUM_LIT:5>, <NUM_LIT:7>, <NUM_LIT:9>]:<EOL><INDENT>try:<EOL><INDENT>int(value[<NUM_LIT:1>:], <NUM_LIT:16>)<EOL>return True<EOL><DEDENT>except ValueError:<EOL><INDENT>pass<EOL><DEDENT><DEDENT>return False<EOL>
Is string CSS color
    args:
        value (str): string
    returns:
        bool