On Wednesday, 4 June 2025 15:04:52 BST Nate Bargmann wrote:
> * On 2025 03 Jun 22:09 -0500, G. Branden Robinson wrote:
> > I think "yes", and I'd go further; since we have only one set of
> > predefined color names, they're all in the same color space (RGB), and
> > they all have the same origin (the X11 color list, which has become a
> > sort of de facto standard in computing even outside of the Unix
> > ecosystem),
> 
> I'm sure you're aware of the W3C Web colors as well:
> 
> https://en.wikipedia.org/wiki/Web_colors
> 
> Which the Wiki says are descended from X11 colors:
> 
> 
I have been comparing HTML and X colour names, results attached as a pdf (and a 
text 
version which should be piped through "less -R" to see the colours).

The background colour represents the named colour. For colours marked "Same" 
the HTML 
and X have matched names and RGB values. If it refers "X=name" it means that 
for the same 
RGB value X has a different name, however there is nothing to stop a single RBG 
value 
having two names, so we could add the HTML name as such an alias.

A colour marked as "Missing" means that no X colour has the particular RBG 
value, the 
closest nearest RBG colour is shown in the third column, the HTML name could be 
added to 
our list.

The last group are where the names are the same but the RBG values are 
different (shown 
by the HTML colour in col 2, and X in col 3). There are 4 colours afffected. 
Xorg-rgb 1.0.6 
addressed this by adding "aliases" with the suffixes "web" or "x11".

Cheers

Deri




         
aliceblue          Same
         
antiquewhite       Same
         aqua   
            X=cyan1
         
aquamarine         Same
         
azure              Same
         
beige              Same
         
bisque             Same
         
black              Same
         
blanchedalmond     Same
         
blue               Same
         
blueviolet         Same
         
brown              Same
         
burlywood          Same
         
cadetblue          Same
         
chartreuse         Same
         
chocolate          Same
         
coral              Same
         
cornflowerblue     Same
         
cornsilk           Same
         
crimson            
Missing=#dc143c
     Closest=firebrick3 : #cd2626
         
cyan               Same
         
darkblue           
X=blue4
         
darkcyan           
X=cyan4
         
darkgoldenrod      Same
         
darkgray           
Missing=#a9a9a9
     Closest=grey66 : #a8a8a8
         
darkgreen          Same
         
darkgrey           
Missing=#a9a9a9
     Closest=grey66 : #a8a8a8
         
darkkhaki          Same
         
darkmagenta        
X=magenta4
         
darkolivegreen     Same
         
darkorange         Same
         
darkorchid         Same
         
darkred            
X=red4
         
darksalmon         Same
         
darkseagreen       Same
         
darkslateblue      Same
         
darkslategray      Same
         
darkturquoise      Same
         
darkviolet         Same
         
deeppink           Same
         
deepskyblue        Same
         
dimgray            
X=dimgrey
         
dimgrey            Same
         
dodgerblue         Same
         
firebrick          Same
         
floralwhite        Same
         
forestgreen        Same
         
fuchsia            
X=magenta1
         
gainsboro          Same
         
ghostwhite         Same
         gold   
            Same
         
goldenrod          Same
         
gray               
Missing=#808080
     
Closest=grey50 : 
#7f7f7f
         
green              
HTML=#008000
        X=#00ff00
         
greenyellow        Same
         
grey               
HTML=#808080
        X=#bebebe



        



                               Colour diff HTML ???> X


         
honeydew           Same
         
hotpink            Same
         
indianred          Same
         
indigo             
Missing=#4b0082
     Closest=purple4 : #551a8b
         
ivory              Same
         
khaki              Same
         
lavender           Same
         
lavenderblush      Same
         
lawngreen          Same
         
lemonchiffon       Same
         
lightblue          Same
         
lightcoral         Same
         
lightcyan          Same
         
lightgoldenrodyellowSame
         
lightgray          Same
         
lightgreen         
X=palegreen2
         
lightgrey          
X=lightgray
         
lightpink          Same
         
lightsalmon        Same
         
lightseagreen      Same
         
lightskyblue       Same
         
lightslategray     
X=lightslategrey
         
lightsteelblue     Same
         
lightyellow        Same
         lime       
        X=green1
         
limegreen          Same
         
linen              Same
         
magenta            Same
         
maroon             
HTML=#800000
        X=#b03060
         
mediumaquamarine   Same
         
mediumblue         Same
         
mediumorchid       Same
         
mediumpurple       Same
         
mediumseagreen     Same
         
mediumslateblue    Same
         
mediumspringgreen  Same
         
mediumturquoise    Same
         
mediumvioletred    Same
         
midnightblue       Same
         
mintcream          Same
         
mistyrose          Same
         
moccasin           Same
         
navajowhite        Same
         
navy               Same
         
oldlace            Same
         
olive              
Missing=#808000
     Closest=gold4 : #8b7500
         
olivedrab          Same
         orange 
            Same
         
orangered          Same
         
orchid             Same
         
palegoldenrod      Same
         
palegreen          Same
         
paleturquoise      Same
         
palevioletred      Same
         
papayawhip         Same
         
peachpuff          Same







                               Colour diff HTML ???> X


         peru 
              Same
         
pink               Same
         
plum               Same
         
powderblue         Same
         
purple             
HTML=#800080
        X=#a020f0
         
rebeccapurple      
Missing=#663399
     Closest=darkorchid4 : #68228b
         
red                Same
         
rosybrown          Same
         
royalblue          Same
         
saddlebrown        Same
         
salmon             Same
         
sandybrown         Same
         
seagreen           Same
         
seashell           Same
         
sienna             Same
         
silver             
Missing=#c0c0c0
     Closest=grey75 : #bfbfbf
         
skyblue            Same
         
slateblue          Same
         
slategray          Same
         
snow               Same
         
springgreen        Same
         
steelblue          Same
         
tan                Same
         
teal               
Missing=#008080
     Closest=turquoise4 : #00868b
         
thistle            Same
         tomato 
            Same
         
turquoise          Same
         
violet             Same
         
wheat              Same
         
white              Same
         
whitesmoke         Same
         yellow 
            Same
         
yellowgreen        Same
        Fin



























Attachment: HTML-Xcolours.pdf
Description: Adobe PDF document

Reply via email to