since we already source validator in this file, how about just using `validator.isHexColor` instead?