Hex colors are simply six hex digits -- 0 is allowed for the first digit, just as it is for any other. So `/[a-f0-9]{6}/` would be valid