<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://en.wikijournal.org/w-wiki/index.php?action=history&amp;feed=atom&amp;title=Encyclopedia_CSS%3A_color</id>
	<title>Encyclopedia CSS: color - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://en.wikijournal.org/w-wiki/index.php?action=history&amp;feed=atom&amp;title=Encyclopedia_CSS%3A_color"/>
	<link rel="alternate" type="text/html" href="https://en.wikijournal.org/w-wiki/index.php?title=Encyclopedia_CSS:_color&amp;action=history"/>
	<updated>2026-05-17T13:03:26Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.5</generator>
	<entry>
		<id>https://en.wikijournal.org/w-wiki/index.php?title=Encyclopedia_CSS:_color&amp;diff=1822&amp;oldid=prev</id>
		<title>Philip: /* Other Articles About CSS */</title>
		<link rel="alternate" type="text/html" href="https://en.wikijournal.org/w-wiki/index.php?title=Encyclopedia_CSS:_color&amp;diff=1822&amp;oldid=prev"/>
		<updated>2025-02-12T22:18:28Z</updated>

		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;Other Articles About CSS&lt;/span&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 01:18, 13 February 2025&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l94&quot;&gt;Line 94:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 94:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Other Articles About CSS ==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Other Articles About CSS ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;{{Template:Navigation/CSS}}&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{{Encyclopedia CSS/Navigation|state=uncollapsed}}&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{{Encyclopedia CSS/Navigation|state=uncollapsed}}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;{{Template:Navigation/CSS}}&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[wj-ru:Энциклопедия CSS: color]]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[wj-ru:Энциклопедия CSS: color]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[wj-de:Enzyklopädie CSS: color]]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[wj-de:Enzyklopädie CSS: color]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key wikijournal_org-en__:diff:1.41:old-1532:rev-1822:php=table --&gt;
&lt;/table&gt;</summary>
		<author><name>Philip</name></author>
	</entry>
	<entry>
		<id>https://en.wikijournal.org/w-wiki/index.php?title=Encyclopedia_CSS:_color&amp;diff=1532&amp;oldid=prev</id>
		<title>Philip: Created page with &quot;{{Programming |name = CSS: color |image = Css.png |image size = 300 |portal = CSS Portal • Web Developers Portal }} &#039;&#039;&#039;The &quot;color&quot; property&#039;&#039;&#039; in CSS defines the text color of an element. It is used to style text and supports both simple color names and more complex formats such as RGB, HEX, HSL, and others. This is one of the most fundamental and frequently used properties in web development.  == Color Formats == The &lt;code&gt;colo...&quot;</title>
		<link rel="alternate" type="text/html" href="https://en.wikijournal.org/w-wiki/index.php?title=Encyclopedia_CSS:_color&amp;diff=1532&amp;oldid=prev"/>
		<updated>2025-01-23T12:38:39Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;{{Programming |name = CSS: color |image = Css.png |image size = 300 |portal = &lt;a href=&quot;/w-wiki/index.php?title=Portal:CSS&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;Portal:CSS (page does not exist)&quot;&gt;CSS Portal&lt;/a&gt; • &lt;a href=&quot;/w-wiki/index.php?title=Portal:Web_Developers&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;Portal:Web Developers (page does not exist)&quot;&gt;Web Developers Portal&lt;/a&gt; }} &amp;#039;&amp;#039;&amp;#039;The &amp;quot;color&amp;quot; property&amp;#039;&amp;#039;&amp;#039; in CSS defines the text color of an element. It is used to style text and supports both simple color names and more complex formats such as RGB, HEX, HSL, and others. This is one of the most fundamental and frequently used properties in web development.  == Color Formats == The &amp;lt;code&amp;gt;colo...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Programming&lt;br /&gt;
|name = CSS: color&lt;br /&gt;
|image = Css.png&lt;br /&gt;
|image size = 300&lt;br /&gt;
|portal = [[Portal:CSS|CSS Portal]] • [[Portal:Web Developers|Web Developers Portal]]&lt;br /&gt;
}}&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;The &amp;quot;color&amp;quot; property&amp;#039;&amp;#039;&amp;#039; in CSS defines the text color of an element. It is used to style text and supports both simple color names and more complex formats such as RGB, HEX, HSL, and others. This is one of the most fundamental and frequently used properties in web development.&lt;br /&gt;
&lt;br /&gt;
== Color Formats ==&lt;br /&gt;
The &amp;lt;code&amp;gt;color&amp;lt;/code&amp;gt; property supports various ways of defining colors:&lt;br /&gt;
&lt;br /&gt;
# &amp;#039;&amp;#039;&amp;#039;Color names&amp;#039;&amp;#039;&amp;#039;: Simple names like &amp;lt;code&amp;gt;red&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;blue&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;green&amp;lt;/code&amp;gt;.&lt;br /&gt;
# &amp;#039;&amp;#039;&amp;#039;HEX color code&amp;#039;&amp;#039;&amp;#039;: Hexadecimal notation, e.g., &amp;lt;code&amp;gt;#ff0000&amp;lt;/code&amp;gt; (red).&lt;br /&gt;
# &amp;#039;&amp;#039;&amp;#039;RGB&amp;#039;&amp;#039;&amp;#039;: Defined as &amp;lt;code&amp;gt;rgb(255, 0, 0)&amp;lt;/code&amp;gt;.&lt;br /&gt;
# &amp;#039;&amp;#039;&amp;#039;RGBA&amp;#039;&amp;#039;&amp;#039;: Similar to RGB but with transparency, e.g., &amp;lt;code&amp;gt;rgba(255, 0, 0, 0.5)&amp;lt;/code&amp;gt;.&lt;br /&gt;
# &amp;#039;&amp;#039;&amp;#039;HSL&amp;#039;&amp;#039;&amp;#039;: Defines colors using hue, saturation, and lightness, e.g., &amp;lt;code&amp;gt;hsl(0, 100%, 50%)&amp;lt;/code&amp;gt;.&lt;br /&gt;
# &amp;#039;&amp;#039;&amp;#039;HSLA&amp;#039;&amp;#039;&amp;#039;: HSL with transparency, e.g., &amp;lt;code&amp;gt;hsla(0, 100%, 50%, 0.5)&amp;lt;/code&amp;gt;.&lt;br /&gt;
# &amp;#039;&amp;#039;&amp;#039;CSS variables&amp;#039;&amp;#039;&amp;#039;: Colors can be defined using variables, e.g., &amp;lt;code&amp;gt;var(--main-color)&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== Usage Example ==&lt;br /&gt;
=== HTML ===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;html&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;body&amp;gt;&lt;br /&gt;
    &amp;lt;p class=&amp;quot;example1&amp;quot;&amp;gt;This text is red.&amp;lt;/p&amp;gt;&lt;br /&gt;
    &amp;lt;p class=&amp;quot;example2&amp;quot;&amp;gt;This text is blue.&amp;lt;/p&amp;gt;&lt;br /&gt;
    &amp;lt;p class=&amp;quot;example3&amp;quot;&amp;gt;This text is green.&amp;lt;/p&amp;gt;&lt;br /&gt;
    &amp;lt;p class=&amp;quot;example4&amp;quot;&amp;gt;This text is orange with transparency.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;/body&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== CSS ===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;css&amp;quot;&amp;gt;&lt;br /&gt;
p {&lt;br /&gt;
    font-size: 16px;&lt;br /&gt;
    font-family: Arial, sans-serif;&lt;br /&gt;
    line-height: 1.5;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
.example1 {&lt;br /&gt;
    color: red; /* Color name */&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
.example2 {&lt;br /&gt;
    color: #0000ff; /* HEX color code */&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
.example3 {&lt;br /&gt;
    color: rgb(0, 255, 0); /* RGB */&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
.example4 {&lt;br /&gt;
    color: rgba(255, 165, 0, 0.8); /* RGBA */&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Browser Support ==&lt;br /&gt;
The &amp;lt;code&amp;gt;color&amp;lt;/code&amp;gt; property is supported by all modern browsers, including mobile versions. It is one of the basic CSS properties available even in the earliest browser versions.&lt;br /&gt;
&lt;br /&gt;
== Notes ==&lt;br /&gt;
* The text color of an element can be inherited from its parent element if not explicitly defined.&lt;br /&gt;
* For more complex color effects (e.g., gradients), use the &amp;lt;code&amp;gt;background&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;background-image&amp;lt;/code&amp;gt; property.&lt;br /&gt;
&lt;br /&gt;
== Useful Tips ==&lt;br /&gt;
* Use semantic color variables like &amp;lt;code&amp;gt;--main-color&amp;lt;/code&amp;gt; to easily manage your website&amp;#039;s color scheme.&lt;br /&gt;
* Check text and background contrast to ensure good readability (e.g., using the [https://webaim.org/resources/contrastchecker/ WebAIM Contrast Checker]).&lt;br /&gt;
&lt;br /&gt;
== Example Using Variables ==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;css&amp;quot;&amp;gt;&lt;br /&gt;
:root {&lt;br /&gt;
    --primary-color: #3498db;&lt;br /&gt;
    --secondary-color: #2ecc71;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
h1 {&lt;br /&gt;
    color: var(--primary-color);&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
p {&lt;br /&gt;
    color: var(--secondary-color);&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
In this example, CSS variables are used to define primary colors:&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;code&amp;gt;:root&amp;lt;/code&amp;gt; is a pseudo-class representing the root element of the document (typically &amp;lt;code&amp;gt;&amp;amp;lt;html&amp;amp;gt;&amp;lt;/code&amp;gt;). Variables defined in &amp;lt;code&amp;gt;:root&amp;lt;/code&amp;gt; are available throughout the website.&lt;br /&gt;
* &amp;lt;code&amp;gt;--primary-color&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;--secondary-color&amp;lt;/code&amp;gt; are custom variables holding color values. They can be overridden for specific parts of the site if needed.&lt;br /&gt;
* Within the rules for &amp;lt;code&amp;gt;h1&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;p&amp;lt;/code&amp;gt;, the &amp;lt;code&amp;gt;var()&amp;lt;/code&amp;gt; function is used to apply the variable values to the &amp;lt;code&amp;gt;color&amp;lt;/code&amp;gt; property.&lt;br /&gt;
&lt;br /&gt;
This is a convenient way to organize the color palette of your website. For instance, if you need to change the primary color of your design, you can edit the variable value in one place, and the changes will automatically reflect on all elements using that variable.&lt;br /&gt;
&lt;br /&gt;
Variables are especially useful when creating themes (e.g., light/dark mode) as they make it easy to switch color values based on user preferences.&lt;br /&gt;
&lt;br /&gt;
== Conclusion ==&lt;br /&gt;
The &amp;lt;code&amp;gt;color&amp;lt;/code&amp;gt; property is an essential part of CSS, enabling efficient control of text colors on web pages. It supports various formats, making it versatile for any project.&lt;br /&gt;
&lt;br /&gt;
== Other Articles About CSS ==&lt;br /&gt;
{{Encyclopedia CSS/Navigation|state=uncollapsed}}&lt;br /&gt;
{{Template:Navigation/CSS}}&lt;br /&gt;
[[wj-ru:Энциклопедия CSS: color]]&lt;br /&gt;
[[wj-de:Enzyklopädie CSS: color]]&lt;br /&gt;
[[wj-es:Enciclopedia CSS: color]]&lt;br /&gt;
[[wj-it:Enciclopedia CSS: color]]&lt;br /&gt;
[[wj-fr:Encyclopédie CSS: color]]&lt;br /&gt;
[[Category:CSS]]&lt;/div&gt;</summary>
		<author><name>Philip</name></author>
	</entry>
</feed>