import re


def IsValidHexColor(color):
    """
  Checks the validity of a hex color value:
    - the color string must consist of 6 hexadecimal digits
  """
    return not re.match("^[0-9a-fA-F]{6}$", color) == None