<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def is_valid_hex(value):
 """Boolean indicating of the value is a valid hex value."""

    if not value:
        return False

    regex = re.compile(HEX_COLOR_REGEX)
    return bool(regex.match(value))