You are here: MusicXML Reference > Score Schema (XSD) > Simple Types > Simple Type: color

Simple Type: color

Description

The color type indicates the color of an element. Color may be represented as hexadecimal RGB triples, as in HTML, or as hexadecimal ARGB tuples, with the A indicating alpha of transparency. An alpha value of 00 is totally transparent; FF is totally opaque. If RGB is used, the A value is assumed to be FF.  For instance, the RGB value "#800080" represents purple. An ARGB value of "#40800080" would be a transparent purple.  As in SVG 1.1, colors are defined in terms of the sRGB color space (IEC 61966).

Derived By

Restricting xs:token

Restrictions
  • Value must match the following pattern: #[\dA-F]{6}([\dA-F][\dA-F])?

Referenced By
Definition
<xs:simpleType name="color">
  <xs:annotation>
    <xs:documentation>The color type indicates the color of an element. Color may be represented as hexadecimal RGB triples, as in HTML, or as hexadecimal ARGB tuples, with the A indicating alpha of transparency. An alpha value of 00 is totally transparent; FF is totally opaque. If RGB is used, the A value is assumed to be FF.

For instance, the RGB value "#800080" represents purple. An ARGB value of "#40800080" would be a transparent purple.

As in SVG 1.1, colors are defined in terms of the sRGB color space (IEC 61966).</xs:documentation>
  </xs:annotation>
  <xs:restriction base="xs:token">
    <xs:pattern value="#[\dA-F]{6}([\dA-F][\dA-F])?" />
  </xs:restriction>
</xs:simpleType>

 

MusicXML Documentation Home
Last built 2/20/2015

7007 Winchester Circle, Suite 140

Boulder, CO 80301