<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE html PUBLIC
        "-//W3C//DTD XHTML 1.1 plus MathML 2.0//EN"
        "http://www.w3.org/TR/MathML2/dtd/xhtml-math11-f.dtd"> 
<?xml-stylesheet type="text/xsl" href="http://www.w3.org/Math/XSL/mathml.xsl"?>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:pref="http://www.w3.org/2002/Math/preference"
      pref:renderer="mathplayer-dl">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link type="text/css" rel="stylesheet" href="http://www.w3.org/StyleSheets/TR/base.css" />
<title>MathML version of the luminosity contrast ratio definition</title>
</head>

<body>
<h1>MathML version of the luminosity contrast ratio definition</h1>
<p>The following is a MathML version of the <a href="http://www.w3.org/TR/WCAG20/appendixA.html#luminosity-contrastdef">WCAG 2.0 definition of luminosity contrast ratio</a>. Refer to <a href="http://www.w3.org/Math/Software/mathml_software_cat_browsers.html">MathML Software - Browsers</a> for information about browsers that support MathML and can correctly display the information on this page. At the time of publication, support for MathML was not sufficient to include it in the body of the guidelines. If this changes prior to publication, this version will be included in the guidelines themselves.</p>
<dl>
<dt class="label">
<a id="luminosity-contrastdef"> </a>luminosity contrast ratio</dt>
<dd>
<p><math xmlns="http://www.w3.org/1998/Math/MathML">
  <mstyle mathcolor="blue" displaystyle="true" fontfamily="serif">
    <mfrac>
      <mrow>
        <mi>L</mi>
        <mn>1</mn>
        <mo>+</mo>
        <mn>0.05</mn>
      </mrow>
      <mrow>
        <mi>L</mi>
        <mn>2</mn>
        <mo>+</mo>
        <mn>0.05</mn>
      </mrow>
    </mfrac>
  </mstyle>
</math>, where L1 is the luminosity of the lighter of the text or background colors, and L2 is the luminosity of the darker of the text or background colors.</p>

<div class="note">
<p class="prefix">
<strong>Note 1:
					</strong>The luminosity of a color is defined as <math xmlns="http://www.w3.org/1998/Math/MathML">
  <mstyle mathcolor="blue" displaystyle="true" fontfamily="serif">
    <mn>0.2126</mn>
    <mrow>
      <mo>(</mo>
      <msup>
        <mrow>
          <mo>(</mo>
          <mfrac>
            <mi>R</mi>
            <mrow>
              <mi>F</mi>
              <mi>S</mi>
            </mrow>
          </mfrac>
          <mo>)</mo>
        </mrow>
        <mn>2.2</mn>
      </msup>
      <mo>)</mo>
    </mrow>
    <mo>+</mo>
    <mn>0.7152</mn>
    <mrow>
      <mo>(</mo>
      <msup>
        <mrow>
          <mo>(</mo>
          <mfrac>
            <mi>G</mi>
            <mrow>
              <mi>F</mi>
              <mi>S</mi>
            </mrow>
          </mfrac>
          <mo>)</mo>
        </mrow>
        <mn>2.2</mn>
      </msup>

      <mo>)</mo>

    </mrow>
    <mo>+</mo>
    <mn>0.0722</mn>
    <mrow>
      <mo>(</mo>
      <msup>
        <mrow>
          <mo>(</mo>
          <mfrac>
            <mi>B</mi>
            <mrow>
              <mi>F</mi>
              <mi>S</mi>
            </mrow>
          </mfrac>
          <mo>)</mo>
        </mrow>
        <mn>2.2</mn>
      </msup>
      <mo>)</mo>
    </mrow>
  </mstyle>
</math> </p>
<ul>
<li>
<p>R, G, and B are the red, green, and blue RGB values of the color.</p>
</li>
<li>
<p>FS is the maximum possible full scale RGB value for R, G, and B (255 for eight bit color channels).</p>
</li>
</ul>
<p class="prefix">
<strong>Note 2:
					</strong>Luminosity values can range from 0 (black) to 1 (white), and luminosity contrast ratios can range from 1 to 21.</p>
</div>
</dd>
</dl>
</body>
</html>
