6 hexadecimal digit colours in limited-colour terminals

Heime <[email protected]> Tue, 14 Jul 2026 23:22:27 +0000
Newsgroups gmane.emacs.help
Message-ID <NhGBjGzZxZuEGAE0cpANFmHvjMI8Sp_30Wv-lm_ffUi_XWbpNNght8LA0Sd7iSw-BuqeihogIF2PKoO4oVkS0ZGUd76TQxY-BT_ErJtMJnk=@protonmail.com>
I have seen that true colour palette uses the 6 digit hexadecimal code
#RRGGBB for colour specification.  Thusly the 6 digit code is incompatible
for 8, 16, and 88 colour terminals. =20

How is it then that colour specification for 16-colour
terminals still use hex values?  Aren't they supposed to use=20
colour names instead?=20

    (((class color) (min-colors 16) (background dark))
         :foreground #ff5ese")
     (((class color) (min-colors 16) (background light))
         :foreground "#ff5ecd")

I have also seen that the hex representation for different
terminal implementations are different.  Meaning that red
is not the same red in another 16 colour terminal emulator.