![]() Otherwise, you are free to use any of the 147 color names specified in the X11 spec.Īll browsers should abide by the specification in reference to the equivalent hex codes. If you're seeking to support legacy browsers stick to the web safe original 16 color names since X11 colors are not supported. This also means that the list of colors provided in the question are mostly not valid. Any of these color names can be used in any browser that supports the SVG 1.0 specification, which is IE9 or newer. This expands the amount of color names to 147 colors. CSS3 & X11 ColorsĬSS3 allows for SVG 1.0's X11 colors to be used for CSS's properties (as well as hsl() values). You can use the color name orange now! The count is up to 17 colors. VGA palette, and their RGB values are not defined in this These 16 colors are taken from the Windows The suggested list of keyword color names is: aqua, black, blue,įuchsia, gray, green, lime, maroon, navy, olive, purple, red, silver, CSS1 SpecificationĬSS1 Specification recommends to use color names as a valid substitute to hex codes and RGB codes. ![]() I recommend that you follow the W3C recommendations:Īll of them (CSS Level 1, Level 2 and Level 3) indicate that using color names is perfectly acceptable, but which ones are acceptible varies depending on the specification. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |