Datatypes › Common › color

sRGB color hex triplet (hex color)

ID hexcolor

Pattern of colorNot PIIcategorical

Color written as a hexadecimal sRGB triplet, for example #1F5FBF.

Pattern of
Color color
Categories
Common
Countries
Global (not tied to a country)
Languages
Common to most languages
AutoType benchmark
hexcolor
FTA
COLOR.HEX
Wikidata
P465
Quality
95/100 · missing: negative example
Metacrafter rules
1 rule (0 by field name, 1 by value)
Supported by tools
Auto-Type, FTA (Fast Text Analysis), Great Expectations Semantic Types Expectations, metacrafter, Talend (Qlik Talend Data Preparation, Data Catalog and Data Inventory), validator.js

Regular expression

^#?(?:[0-9A-Fa-f]{3}){1,2}$

Python re syntax.

Test a value

Examples

ValueDescription
#1F5FBF six hex digits with a leading #
FF8800 six hex digits without #
#FFF short three-digit form

Translations

LanguageNameDescription
RussianЦвет в шестнадцатеричной кодировкеЦвет sRGB в шестнадцатеричной кодировке

Sources

Use this record