Consistent hex codes