Hex color regex pattern

Copy and test a JavaScript regex for hex color values, with examples and a one-click link to the regex tester.