MathML Fundamentals - Mathematics style attributes common to presentation elements

All MathML presentation elements accept the following two attributes: mathcolor and mathbackground. These style attributes are primarily intended for visual media. They are not expected to affect the intended semantics of displayed expressions, but are for use in highlighting or drawing attention to the affected subexpressions. MathML Fundamentals

MathML Fundamentals - Color Valued Attributes #RGB red: green: blue: #RRGGBB red: green: blue: HTML colors:

MathML

<math mathcolor="red">
    <mtext style="border:1px;" mathsize="50" mathbackground="blue">MathML Fundamentals - Color Valued Attributes</mtext>
    <mspace linebreak="newline" indentalign="center"></mspace>
    <mrow style="border:1px">
        <mtext>#RGB red:</mtext>
        <mspace style="border:1px;" mathbackground="#f00" width="1em" height="1em"></mspace>
        <mtext>green:</mtext>
        <mspace style="border:1px;" mathbackground="#0f0" width="1em" height="1em"></mspace>
        <mtext>blue:</mtext>
        <mspace style="border:1px;" mathbackground="#00f" width="1em" height="1em"></mspace>
    </mrow>
    <mspace linebreak="newline" indentalign="center"></mspace>
    <mrow style="border:1px">
        <mtext>#RRGGBB red:</mtext>
        <mspace style="border:1px;" mathbackground="#ff0000" width="1em" height="1em"></mspace>
        <mtext>green:</mtext>
        <mspace style="border:1px;" mathbackground="#00ff00" width="1em" height="1em"></mspace>
        <mtext>blue:</mtext>
        <mspace style="border:1px;" mathbackground="#0000ff" width="1em" height="1em"></mspace>
    </mrow>
    <mspace linebreak="newline" indentalign="center"></mspace>
    <mrow style="border:1px">
        <mtext>HTML colors:</mtext>
        <mspace style="border:1px;" mathbackground="aQua" width="20" height="1em"></mspace>
        <mspace style="border:1px;" mathbackground="black" width="20" height="1em"></mspace>
        <mspace style="border:1px;" mathbackground="blue" width="20" height="1em"></mspace>
        <mspace style="border:1px;" mathbackground="fuchsia" width="20" height="1em"></mspace>
        <mspace style="border:1px;" mathbackground="gray" width="20" height="1em"></mspace>
        <mspace style="border:1px;" mathbackground="green" width="20" height="1em"></mspace>
        <mspace style="border:1px;" mathbackground="lime" width="20" height="1em"></mspace>
        <mspace style="border:1px;" mathbackground="maroon" width="20" height="1em"></mspace>
        <mspace style="border:1px;" mathbackground="navy" width="20" height="1em"></mspace>
        <mspace style="border:1px;" mathbackground="olive" width="20" height="1em"></mspace>
        <mspace style="border:1px;" mathbackground="purple" width="20" height="1em"></mspace>
        <mspace style="border:1px;" mathbackground="red" width="20" height="1em"></mspace>
        <mspace style="border:1px;" mathbackground="silver" width="20" height="1em"></mspace>
        <mspace style="border:1px;" mathbackground="teal" width="20" height="1em"></mspace>
        <mspace style="border:1px;" mathbackground="white" width="20" height="1em"></mspace>
        <mspace style="border:1px;" mathbackground="yellow" width="20" height="1em"></mspace>
    </mrow>
</math>