You cannot reference constants directly from a custom widget. You could, however, have the widget call a microflow and return the value of your constant.
This thread suggests a similar solution and a reason why constants are not publicly visible to widgets.