If you want to apply conditional validation on 'Footer Hexcode' or 'Header Hexcode', then you need to add 'Color Picker' input as '#AFAFAF'
{{hexcolorinfoForm.controls?.color?.errors?.hexColor.message}}
If you want to apply conditional validation on 'Header Hexcode' then you need to add 'Color Picker' input as '#AFAFAF'
Conditional Expression with type 'string'
{{hexcolorinfoForm.controls?.headerHexcolorCode?.errors?.hexColor.message}}
Shows custom message
{{hexcolorinfoForm.controls?.bodyHexcolorCode?.errors?.hexColor.message}}