From Code to Community: Sponsoring The Perl and Raku Conference 2025 Learn more

<?xml version="1.0" encoding="UTF-8"?>
<?latexml class="article"?>
<?latexml package="color" options="dvipsnames"?>
<?latexml RelaxNGSchema="LaTeXML"?>
<document xmlns="http://dlmf.nist.gov/LaTeXML">
<resource src="LaTeXML.css" type="text/css"/>
<resource src="ltx-article.css" type="text/css"/>
<section inlist="toc" xml:id="S1">
<tags>
<tag>1</tag>
<tag role="refnum">1</tag>
<tag role="typerefnum">§1</tag>
</tags>
<title><tag close=" ">1</tag>Predefined colors</title>
<para xml:id="S1.p1">
<p><text color="#000000">Black</text> vs. <text color="#000000">Black</text>.</p>
</para>
<para xml:id="S1.p2">
<p><text color="#FFFFFF">White</text> vs. <text color="#FFFFFF">White</text>.</p>
</para>
<para xml:id="S1.p3">
<p><text color="#FF0000">Red</text> vs. <text color="#FF0000">Red</text>.</p>
</para>
<para xml:id="S1.p4">
<p><text color="#00FF00">Green</text> vs. <text color="#00FF00">Green</text>.</p>
</para>
<para xml:id="S1.p5">
<p><text color="#0000FF">Blue</text> vs. <text color="#0000FF">Blue</text>.</p>
</para>
<para xml:id="S1.p6">
<p><text color="#00FFFF">Cyan</text> vs. <text color="#00FFFF">Cyan</text>.</p>
</para>
<para xml:id="S1.p7">
<p><text color="#FF00FF">Magenta</text> vs. <text color="#FF00FF">Magenta</text>.</p>
</para>
<para xml:id="S1.p8">
<p><text color="#FFFF00">Yellow</text> vs. <text color="#FFFF00">Yellow</text>.</p>
</para>
</section>
<section inlist="toc" xml:id="S2">
<tags>
<tag>2</tag>
<tag role="refnum">2</tag>
<tag role="typerefnum">§2</tag>
</tags>
<title><tag close=" ">2</tag>RGB colors</title>
<para xml:id="S2.p1">
<p><text color="#FF0000">Red</text>
vs. <text color="#FF0000">Red</text>
vs. <text color="#FF0000">Red</text>.</p>
</para>
</section>
<section inlist="toc" xml:id="S3">
<tags>
<tag>3</tag>
<tag role="refnum">3</tag>
<tag role="typerefnum">§3</tag>
</tags>
<title><tag close=" ">3</tag>CMYK colors</title>
<para xml:id="S3.p1">
<p><text color="#00FFFF">Cyan</text>
vs. <text color="#00FFFF">Cyan</text>
vs. <text color="#00FFFF">Cyan</text></p>
</para>
<para xml:id="S3.p2">
<p><text color="#000000">Black</text>
vs.<text color="#000000">Black</text>
vs.<text color="#000000">Black</text></p>
</para>
</section>
<section inlist="toc" xml:id="S4">
<tags>
<tag>4</tag>
<tag role="refnum">4</tag>
<tag role="typerefnum">§4</tag>
</tags>
<title><tag close=" ">4</tag>Gray colors</title>
<para xml:id="S4.p1">
<p><text color="#000000">Black</text>
vs. <text color="#000000">Black</text>
vs. <text color="#000000">Black</text></p>
</para>
<para xml:id="S4.p2">
<p><text color="#808080">Gray</text>
vs. <text color="#808080">Gray</text>
vs. <text color="#808080">Gray</text></p>
</para>
<para xml:id="S4.p3">
<p><text color="#E6E6E6">Light</text>
vs. <text color="#E6E6E6">Light</text>
vs. <text color="#E6E6E6">Light</text></p>
</para>
</section>
<section inlist="toc" xml:id="S5">
<tags>
<tag>5</tag>
<tag role="refnum">5</tag>
<tag role="typerefnum">§5</tag>
</tags>
<title><tag close=" ">5</tag>Boxes</title>
<para xml:id="S5.p1">
<p><text backgroundcolor="#808080" color="#E6E6E6">Light within Gray</text></p>
</para>
<para xml:id="S5.p2">
<p>vs. <text backgroundcolor="#808080" color="#E6E6E6">Light within Gray</text></p>
</para>
<para xml:id="S5.p3">
<p><text backgroundcolor="#FF0000" color="#00FF00" framecolor="#0000FF" framed="rectangle">Green in Red surrounded by Blue</text></p>
</para>
<para xml:id="S5.p4">
<p><text backgroundcolor="#00FFFF" color="#FFFF00" framecolor="#FF00FF" framed="rectangle">Yellow in Cyan surrounded by Magenta</text></p>
</para>
</section>
<section inlist="toc" xml:id="S6">
<tags>
<tag>6</tag>
<tag role="refnum">6</tag>
<tag role="typerefnum">§6</tag>
</tags>
<title><tag close=" ">6</tag>Math</title>
<para xml:id="S6.p1">
<equation xml:id="S6.Ex1">
<Math mode="display" tex="{\color[rgb]{1,0,0}R}+{\color[rgb]{0,1,0}G}+{\color[rgb]{0,0,1}B}" text="R + G + B" xml:id="S6.Ex1.m1">
<XMath>
<XMApp>
<XMTok meaning="plus" role="ADDOP">+</XMTok>
<XMTok color="#FF0000" font="italic" role="UNKNOWN">R</XMTok>
<XMTok color="#00FF00" font="italic" role="UNKNOWN">G</XMTok>
<XMTok color="#0000FF" font="italic" role="UNKNOWN">B</XMTok>
</XMApp>
</XMath>
</Math>
</equation>
</para>
<para xml:id="S6.p2">
<equation xml:id="S6.Ex2">
<Math mode="display" tex="\hbox{\pagecolor{red}R}+\hbox{\pagecolor{green}G}+\hbox{\pagecolor{blue}B}" text="[R] + [G] + [B]" xml:id="S6.Ex2.m1">
<XMath>
<XMApp>
<XMTok meaning="plus" role="ADDOP">+</XMTok>
<XMText backgroundcolor="#FF0000">R</XMText>
<XMText backgroundcolor="#00FF00">G</XMText>
<XMText backgroundcolor="#0000FF">B</XMText>
</XMApp>
</XMath>
</Math>
</equation>
</para>
<para xml:id="S6.p3">
<equation xml:id="S6.Ex3">
<Math mode="display" tex="\fcolorbox{green}{blue}{\textcolor{red}{R}}+\fcolorbox{blue}{red}{\textcolor{%&#10;green}{G}}+\fcolorbox{red}{green}{\textcolor{blue}{B}}" text="[R] + [G] + [B]" xml:id="S6.Ex3.m1">
<XMath>
<XMApp>
<XMTok meaning="plus" role="ADDOP">+</XMTok>
<XMText backgroundcolor="#0000FF" framecolor="#00FF00" framed="rectangle"><text color="#FF0000">R</text></XMText>
<XMText backgroundcolor="#FF0000" framecolor="#0000FF" framed="rectangle"><text color="#00FF00">G</text></XMText>
<XMText backgroundcolor="#00FF00" framecolor="#FF0000" framed="rectangle"><text color="#0000FF">B</text></XMText>
</XMApp>
</XMath>
</Math>
</equation>
</para>
</section>
<section inlist="toc" xml:id="S7">
<tags>
<tag>7</tag>
<tag role="refnum">7</tag>
<tag role="typerefnum">§7</tag>
</tags>
<title><tag close=" ">7</tag>Named colors (DVIPS)</title>
<para xml:id="S7.p1">
<p><text color="#03FF7A">JungleGreen</text>
vs. <text color="#03FF7A">JungleGreen</text>
vs. <text color="#03FF7A">JungleGreen</text></p>
</para>
<para xml:id="S7.p2">
<tabular class="ltx_guessed_headers" vattach="middle">
<tbody>
<tr>
<td align="left" thead="row"><text color="#D9FF4F">GreenYellow</text></td>
<td align="left" border="r"><text backgroundcolor="#D9FF4F">GreenYellow</text></td>
<td align="left" thead="row"><text color="#FFFF00">Yellow</text></td>
<td align="left"><text backgroundcolor="#FFFF00">Yellow</text></td>
</tr>
<tr>
<td align="left" thead="row"><text color="#FFE629">Goldenrod</text></td>
<td align="left" border="r"><text backgroundcolor="#FFE629">Goldenrod</text></td>
<td align="left" thead="row"><text color="#FFB529">Dandelion</text></td>
<td align="left"><text backgroundcolor="#FFB529">Dandelion</text></td>
</tr>
<tr>
<td align="left" thead="row"><text color="#FFAD7A">Apricot</text></td>
<td align="left" border="r"><text backgroundcolor="#FFAD7A">Apricot</text></td>
<td align="left" thead="row"><text color="#FF804D">Peach</text></td>
<td align="left"><text backgroundcolor="#FF804D">Peach</text></td>
</tr>
<tr>
<td align="left" thead="row"><text color="#FF8A80">Melon</text></td>
<td align="left" border="r"><text backgroundcolor="#FF8A80">Melon</text></td>
<td align="left" thead="row"><text color="#FF9400">YellowOrange</text></td>
<td align="left"><text backgroundcolor="#FF9400">YellowOrange</text></td>
</tr>
<tr>
<td align="left" thead="row"><text color="#FF6321">Orange</text></td>
<td align="left" border="r"><text backgroundcolor="#FF6321">Orange</text></td>
<td align="left" thead="row"><text color="#FF7D00">BurntOrange</text></td>
<td align="left"><text backgroundcolor="#FF7D00">BurntOrange</text></td>
</tr>
<tr>
<td align="left" thead="row"><text color="#C20300">Bittersweet</text></td>
<td align="left" border="r"><text backgroundcolor="#C20300">Bittersweet</text></td>
<td align="left" thead="row"><text color="#FF3B21">RedOrange</text></td>
<td align="left"><text backgroundcolor="#FF3B21">RedOrange</text></td>
</tr>
<tr>
<td align="left" thead="row"><text color="#A60000">Mahogany</text></td>
<td align="left" border="r"><text backgroundcolor="#A60000">Mahogany</text></td>
<td align="left" thead="row"><text color="#AD0000">Maroon</text></td>
<td align="left"><text backgroundcolor="#AD0000">Maroon</text></td>
</tr>
<tr>
<td align="left" thead="row"><text color="#B80000">BrickRed</text></td>
<td align="left" border="r"><text backgroundcolor="#B80000">BrickRed</text></td>
<td align="left" thead="row"><text color="#FF0000">Red</text></td>
<td align="left"><text backgroundcolor="#FF0000">Red</text></td>
</tr>
<tr>
<td align="left" thead="row"><text color="#FF0080">OrangeRed</text></td>
<td align="left" border="r"><text backgroundcolor="#FF0080">OrangeRed</text></td>
<td align="left" thead="row"><text color="#FF00DE">RubineRed</text></td>
<td align="left"><text backgroundcolor="#FF00DE">RubineRed</text></td>
</tr>
<tr>
<td align="left" thead="row"><text color="#FF0A9C">WildStrawberry</text></td>
<td align="left" border="r"><text backgroundcolor="#FF0A9C">WildStrawberry</text></td>
<td align="left" thead="row"><text color="#FF789E">Salmon</text></td>
<td align="left"><text backgroundcolor="#FF789E">Salmon</text></td>
</tr>
<tr>
<td align="left" thead="row"><text color="#FF5EFF">CarnationPink</text></td>
<td align="left" border="r"><text backgroundcolor="#FF5EFF">CarnationPink</text></td>
<td align="left" thead="row"><text color="#FF00FF">Magenta</text></td>
<td align="left"><text backgroundcolor="#FF00FF">Magenta</text></td>
</tr>
<tr>
<td align="left" thead="row"><text color="#FF30FF">VioletRed</text></td>
<td align="left" border="r"><text backgroundcolor="#FF30FF">VioletRed</text></td>
<td align="left" thead="row"><text color="#FF2EFF">Rhodamine</text></td>
<td align="left"><text backgroundcolor="#FF2EFF">Rhodamine</text></td>
</tr>
<tr>
<td align="left" thead="row"><text color="#A314FA">Mulberry</text></td>
<td align="left" border="r"><text backgroundcolor="#A314FA">Mulberry</text></td>
<td align="left" thead="row"><text color="#9600A8">RedViolet</text></td>
<td align="left"><text backgroundcolor="#9600A8">RedViolet</text></td>
</tr>
<tr>
<td align="left" thead="row"><text color="#7303EB">Fuchsia</text></td>
<td align="left" border="r"><text backgroundcolor="#7303EB">Fuchsia</text></td>
<td align="left" thead="row"><text color="#FF85FF">Lavender</text></td>
<td align="left"><text backgroundcolor="#FF85FF">Lavender</text></td>
</tr>
<tr>
<td align="left" thead="row"><text color="#E069FF">Thistle</text></td>
<td align="left" border="r"><text backgroundcolor="#E069FF">Thistle</text></td>
<td align="left" thead="row"><text color="#AD5CFF">Orchid</text></td>
<td align="left"><text backgroundcolor="#AD5CFF">Orchid</text></td>
</tr>
<tr>
<td align="left" thead="row"><text color="#9933CC">DarkOrchid</text></td>
<td align="left" border="r"><text backgroundcolor="#9933CC">DarkOrchid</text></td>
<td align="left" thead="row"><text color="#8C24FF">Purple</text></td>
<td align="left"><text backgroundcolor="#8C24FF">Purple</text></td>
</tr>
<tr>
<td align="left" thead="row"><text color="#8000FF">Plum</text></td>
<td align="left" border="r"><text backgroundcolor="#8000FF">Plum</text></td>
<td align="left" thead="row"><text color="#361FFF">Violet</text></td>
<td align="left"><text backgroundcolor="#361FFF">Violet</text></td>
</tr>
<tr>
<td align="left" thead="row"><text color="#401AFF">RoyalPurple</text></td>
<td align="left" border="r"><text backgroundcolor="#401AFF">RoyalPurple</text></td>
<td align="left" thead="row"><text color="#1A0DF5">BlueViolet</text></td>
<td align="left"><text backgroundcolor="#1A0DF5">BlueViolet</text></td>
</tr>
<tr>
<td align="left" thead="row"><text color="#6E73FF">Periwinkle</text></td>
<td align="left" border="r"><text backgroundcolor="#6E73FF">Periwinkle</text></td>
<td align="left" thead="row"><text color="#616EC4">CadetBlue</text></td>
<td align="left"><text backgroundcolor="#616EC4">CadetBlue</text></td>
</tr>
<tr>
<td align="left" thead="row"><text color="#59DEFF">CornflowerBlue</text></td>
<td align="left" border="r"><text backgroundcolor="#59DEFF">CornflowerBlue</text></td>
<td align="left" thead="row"><text color="#007091">MidnightBlue</text></td>
<td align="left"><text backgroundcolor="#007091">MidnightBlue</text></td>
</tr>
<tr>
<td align="left" thead="row"><text color="#0F75FF">NavyBlue</text></td>
<td align="left" border="r"><text backgroundcolor="#0F75FF">NavyBlue</text></td>
<td align="left" thead="row"><text color="#0080FF">RoyalBlue</text></td>
<td align="left"><text backgroundcolor="#0080FF">RoyalBlue</text></td>
</tr>
<tr>
<td align="left" thead="row"><text color="#0000FF">Blue</text></td>
<td align="left" border="r"><text backgroundcolor="#0000FF">Blue</text></td>
<td align="left" thead="row"><text color="#0FE3FF">Cerulean</text></td>
<td align="left"><text backgroundcolor="#0FE3FF">Cerulean</text></td>
</tr>
<tr>
<td align="left" thead="row"><text color="#00FFFF">Cyan</text></td>
<td align="left" border="r"><text backgroundcolor="#00FFFF">Cyan</text></td>
<td align="left" thead="row"><text color="#0AFFFF">ProcessBlue</text></td>
<td align="left"><text backgroundcolor="#0AFFFF">ProcessBlue</text></td>
</tr>
<tr>
<td align="left" thead="row"><text color="#61FFE0">SkyBlue</text></td>
<td align="left" border="r"><text backgroundcolor="#61FFE0">SkyBlue</text></td>
<td align="left" thead="row"><text color="#26FFCC">Turquoise</text></td>
<td align="left"><text backgroundcolor="#26FFCC">Turquoise</text></td>
</tr>
<tr>
<td align="left" thead="row"><text color="#1FFAA3">TealBlue</text></td>
<td align="left" border="r"><text backgroundcolor="#1FFAA3">TealBlue</text></td>
<td align="left" thead="row"><text color="#2EFFB3">Aquamarine</text></td>
<td align="left"><text backgroundcolor="#2EFFB3">Aquamarine</text></td>
</tr>
<tr>
<td align="left" thead="row"><text color="#26FFAB">BlueGreen</text></td>
<td align="left" border="r"><text backgroundcolor="#26FFAB">BlueGreen</text></td>
<td align="left" thead="row"><text color="#00FF80">Emerald</text></td>
<td align="left"><text backgroundcolor="#00FF80">Emerald</text></td>
</tr>
<tr>
<td align="left" thead="row"><text color="#03FF7A">JungleGreen</text></td>
<td align="left" border="r"><text backgroundcolor="#03FF7A">JungleGreen</text></td>
<td align="left" thead="row"><text color="#4FFF80">SeaGreen</text></td>
<td align="left"><text backgroundcolor="#4FFF80">SeaGreen</text></td>
</tr>
<tr>
<td align="left" thead="row"><text color="#00FF00">Green</text></td>
<td align="left" border="r"><text backgroundcolor="#00FF00">Green</text></td>
<td align="left" thead="row"><text color="#00E000">ForestGreen</text></td>
<td align="left"><text backgroundcolor="#00E000">ForestGreen</text></td>
</tr>
<tr>
<td align="left" thead="row"><text color="#00BF29">PineGreen</text></td>
<td align="left" border="r"><text backgroundcolor="#00BF29">PineGreen</text></td>
<td align="left" thead="row"><text color="#80FF00">LimeGreen</text></td>
<td align="left"><text backgroundcolor="#80FF00">LimeGreen</text></td>
</tr>
<tr>
<td align="left" thead="row"><text color="#8FFF42">YellowGreen</text></td>
<td align="left" border="r"><text backgroundcolor="#8FFF42">YellowGreen</text></td>
<td align="left" thead="row"><text color="#BDFF3D">SpringGreen</text></td>
<td align="left"><text backgroundcolor="#BDFF3D">SpringGreen</text></td>
</tr>
<tr>
<td align="left" thead="row"><text color="#009900">OliveGreen</text></td>
<td align="left" border="r"><text backgroundcolor="#009900">OliveGreen</text></td>
<td align="left" thead="row"><text color="#8C0000">RawSienna</text></td>
<td align="left"><text backgroundcolor="#8C0000">RawSienna</text></td>
</tr>
<tr>
<td align="left" thead="row"><text color="#4D0000">Sepia</text></td>
<td align="left" border="r"><text backgroundcolor="#4D0000">Sepia</text></td>
<td align="left" thead="row"><text color="#660000">Brown</text></td>
<td align="left"><text backgroundcolor="#660000">Brown</text></td>
</tr>
<tr>
<td align="left" thead="row"><text color="#DB9470">Tan</text></td>
<td align="left" border="r"><text backgroundcolor="#DB9470">Tan</text></td>
<td align="left" thead="row"><text color="#808080">Gray</text></td>
<td align="left"><text backgroundcolor="#808080">Gray</text></td>
</tr>
<tr>
<td align="left" thead="row"><text color="#000000">Black</text></td>
<td align="left" border="r"><text backgroundcolor="#000000">Black</text></td>
<td align="left" thead="row"><text color="#FFFFFF">White</text></td>
<td align="left"><text backgroundcolor="#FFFFFF">White</text></td>
</tr>
</tbody>
</tabular>
</para>
</section>
</document>