The django_extras.core.validators module contains a collection of callable validators for use with model and form fields. They’re used internally but are available for use with your own fields, too. They can be used in addition to, or in lieu of custom field.clean() methods.
A RegexValidator instance that ensures a value looks like a CSS color value.
A RegexValidator instance that ensures a value looks like a CSS color value. Supports color definitions with alpha blending.