• Validator that requires the control value to be a valid color code.

    Parameters

    • control: AbstractControl

    Returns ValidationErrors | null

    An error object with the color property if the validation check fails, otherwise null.