I finally got this working! I made this for a color palette tool I’m working on.
As you type, valid HTML color codes get highlighted in their color, and the colors are outputted in an array. If you have cookies enabled, your colors will be there even if you close and reopen your browser. Let me know if there are any features you think I should add (^u^)