Plurimath

`color` (binary)

Color

AsciiMath

color(red)(y)

LaTeX

{\color{red} y}

MathML

<math xmlns="http://www.w3.org/1998/Math/MathML" display="block">
  <mstyle displaystyle="true">
    <mstyle mathcolor="red">
      <mi>x</mi>
    </mstyle>
  </mstyle>
</math>

UnicodeMath

✎(red&x)
Note
In other conversions, the value of the class will be processed as a simple text. For example, the output of this example in AsciiMath will be represented as x.