Re: Retrieving color names and hex values using list-colors-display for coding purposes
Heime <[email protected]> Fri, 17 Jul 2026 14:28:11 +0000
| Newsgroups | gmane.emacs.help |
|---|---|
| Message-ID | <Lg7peVTEImdkSygH3oIS6v3cxVwcpsv6GGy0c79NBnQYVQC_ctZ3LYSFcR6ZwN8kf11muzh0rdiVMGKR1J7E8rJFqBarghqzP6rCNF1Oabs=@protonmail.com> |
Sent with Proton Mail secure email. On Saturday, July 18th, 2026 at 1:33 AM, Eli Zaretskii <[email protected]> wrote= : > > Date: Fri, 17 Jul 2026 13:22:13 +0000 > > From: uzibalqa <[email protected]> > > Cc: Heime <[email protected]>, [email protected], help-gnu-ema= [email protected] > > > > If the advice is always to use #RRRRGGGGBBBB, which is also always the = advice > > for my cases, then how (list-colors-display) showing me #RRGGBB follow= s the > > advice you described? To follow your advice, display #RRRRGGGGBBBB, no= t > > the currently displayed #RRGGBB. >=20 > Are you writing list-colors-display? If not, why is it important that > it shows 6-digit RGB values? Because colour-values on the name are in range 0-65535, a range that=20 definitly requires hex RRRR and not hex RR. The hex value is unique, consequently using RR instead of RRRR is incorrect. Multiple (0-65535) values map to the same #RR value, breaking uniqueness=20 and accuracy. Colour accuracy matters for contrast calculations, accessibi= lity,=20 and precise colour matching. The emphasis on the importance of 6-digit=20 hex values is that they uniquely and accurately represent the colour in=20 the standard hex format.