Retrieving color names and hex values using list-colors-display for coding purposes

Heime <[email protected]> Thu, 16 Jul 2026 02:56:34 +0000
Newsgroups gmane.emacs.help
Message-ID <BEIrJD3iAMlCfFYoZXNWsh9jVRrXSPjJviYjREr-VnPBG8T3pC_9fkM0WCluygSHoulngao78IUC2-uXyPSrNVrW1Ql9XJEF25f4nrFKZmA=@protonmail.com>
How can I get list of colour names and hex numbers (list-colors-display)=20
that I can then use in my code with a loop.