Moving just the hardcoded regex to a `ColorUtils.js` and not touching tinycolor seems to be the safest and least invasive method at the moment. If you have no objections against this, I shall proceed with the change.