Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
Web colors
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
==HTML color names== Recent [[W3C]] specifications of color names distinguishes between ''basic'' and ''extended'' colors.<ref name='w3orgcss3color'>{{cite web|url=https://www.w3.org/TR/2011/REC-css3-color-20110607/ |title=CSS Color Module Level 3|publisher=W3c|access-date=19 July 2020}}</ref> In HTML and XHTML, colors can be used for text, background color, frame borders, tables, and individual table cells.<ref>{{Cite book|last=Powell|first=Thomas A.|title=HTML & CSS: The Complete Reference, Fifth Edition|publisher=McGraw-Hill|year=2010|isbn=9780071741705|location=New York|page=765}}</ref> [[File:Untitled Diagram.drawio.png|class=skin-invert-image|thumb|A Diagram containing every basic HTML color.]] ===Basic colors=== The basic colors are 16 colors defined in the [[HTML]] 4.01 specification, ratified in 1999,<ref>{{cite web|url=http://www.w3.org/TR/REC-html40/types.html#h-6.5|title=HTML 4.01 Specification {{!}} Basic HTML data types {{!}} Colors |publisher=W3C|access-date=8 July 2013}}</ref> as follows (names are defined in this context to be case-insensitive): {{Colornames}} These 16 were labeled as sRGB and included in the HTML 3.0 specification, which noted they were "the standard 16 colors supported with the Windows [[Video Graphics Array|VGA]] palette."<ref>{{cite web|url=http://www.w3.org/TR/REC-html32#body |title=HTML 3.2 Reference Specification {{!}} The BODY element |publisher=W3C |access-date=8 July 2013 |first=Dave |last=Raggett}}</ref> ===Extended colors<span class="anchor" id="X11 color names"></span>=== [[File:SVG Recognized color keyword names.svg|thumbnail|SVG Version of X11 color names]] [[File:SVG1.1 Color Swatch.svg|thumb|SVG1.1 named colors with sRGB hex/dec and HSL codes, at UHD (4K) resolution]] Extended colors are the result of merging specifications from HTML 4.01, CSS 2.0, SVG 1.0 and CSS3 User Interfaces (CSS3 UI).<ref name='w3orgcss3color' /> Several colors are defined by [[web browser]]s. A particular browser may not recognize all of these colors, but as of 2005, all modern, general-use, graphical browsers support the full list of colors. Many of these colors are from the list of [[X11 color names]] distributed with the [[X Window System]]. These colors were standardized by [[SVG|SVG 1.0]], and are accepted by [[SVG|SVG Full]] user agents. They are not part of [[SVG|SVG Tiny]]. The list of colors shipped with the X11 product varies between implementations and clashes with certain of the HTML names such as green. X11 colors are defined as simple [[RGB color model|RGB]] (hence, no particular color space), rather than [[sRGB]]. This means that the list of colors found in X11 (e.g., in /usr/lib/X11/rgb.txt) should not directly be used to choose colors for the web.<ref>{{cite web|url=//lists.w3.org/Archives/Public/www-svg/2002Apr/0052.html |title=Re: color names in SVG-1.0 conflict with /usr/lib/X11/rgb.txt |publisher=W3C Public mailing list archives |access-date=8 July 2013 |first=Chris |last=Lilley |date=24 Apr 2002}}</ref> The list of web "X11 colors" from the CSS3 specification, along with their hexadecimal and decimal equivalents, is shown below. Compare the alphabetical lists in the W3C standards. This includes the common synonyms: aqua (HTML4/CSS 1.0 standard name) and [[cyan]] (common sRGB name), fuchsia (HTML4/CSS 1.0 standard name) and [[magenta]] (common sRGB name), gray (HTML4/CSS 1.0 standard name) and grey.<ref>{{cite web |url=http://www.w3.org/TR/css3-color/#svg-color |publisher=W3C |work=CSS Color Module Level 3 |title=4.3. Extended color keywords |date=7 June 2011 |editor1-first=Tantek |editor1-last=Γelik |editor2-first=Chris |editor2-last=Lilley |editor3-first=L. David |editor3-last=Baron |first1=Steven |last1=Pemberton |first2=Brad |last2=Pettit |access-date=19 March 2013 }}</ref><ref>{{cite web|url=https://www.w3.org/TR/2011/REC-SVG11-20110816/types.html#ColorKeywords |title=Scalable Vector Graphics (SVG) 1.1 (Second Edition) {{!}} Basic Data Types and Interfaces {{!}} Recognized color keyword names |publisher=W3C |date=16 August 2011 |access-date=1 Feb 2019}}</ref> {{clear}} {{Color chart X11}}
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)