It is quite common for hex colors to be 3 or four elements (1 char per channel). It is at least supported in css.