diff --git a/validation.md b/validation.md index 2603bd9a960..07202376cb2 100644 --- a/validation.md +++ b/validation.md @@ -906,6 +906,7 @@ Below is a list of all available validation rules and their function: [Filled](#rule-filled) [Greater Than](#rule-gt) [Greater Than Or Equal](#rule-gte) +[Hex Color](#rule-hex-color) [Image (File)](#rule-image) [In](#rule-in) [In Array](#rule-in-array) @@ -1344,6 +1345,11 @@ The field under validation must be greater than the given _field_ or _value_. Th The field under validation must be greater than or equal to the given _field_ or _value_. The two fields must be of the same type. Strings, numerics, arrays, and files are evaluated using the same conventions as the [`size`](#rule-size) rule. + +#### hex_color + +The field under validation must contain a valid color value in [hexadecimal](https://developer.mozilla.org/en-US/docs/Web/CSS/hex-color) format. + #### image