import re


def hex_color_code(value: str):
    """
    Hex color validator
    Example Result:
        [#00ff00,
        #fff]
    """
    _hex_color_pat = r'#(?:[A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})'
    return re.findall(_hex_color_pat, value)