---
title: Color
framework: applenewsformat
role: symbol
role_heading: Type
path: applenewsformat/color
---

# Color

The strings for defining colors in Apple News Format.

## Declaration

```data
string Color
```

## Mentioned in

Supported Color Names

## PossibleValues:

PossibleValues: /^(\#\w{3})|(\#\w{6})|(\#\w{8})|([a-z]{0,20})$/ Discussion You can define colors in different ways in Apple News Format. 3-character RGB Use three characters to define red, green, and blue (RGB). For example, a value of #c00 is short for #cc0000 and makes red. 4-character RGBA Use four characters to define RGB and alpha (opacity). For example, a value of #fc0a is short for #ffcc00aa. 6-character RGB Use six characters to define two-character values for each of red, green, and blue. For example, a value of #0000ff makes blue. 8-character RGBA Use eight characters to define RGBA. For example, in a value of #000000aa, the first six characters define RGB, and the last characters define alpha. #00000000 represents black but fully transparent, while #000000ff is fully opaque. Color Names Use any of the available color names like red, lightgreen, or rebeccapurple. See Supported Color Names.

## See Also

### Styles

- [Enhancing Your Articles with Styles](applenews/enhancing-your-articles-with-styles.md)
- [Supporting Dark Mode for Your Article](applenews/supporting-dark-mode-for-your-article.md)
- [DocumentStyle](applenewsformat/documentstyle.md)
- [Text Styles](applenews/text-styles.md)
- [Component Styles](applenews/component-styles.md)
- [Supported Color Names](applenews/supported-color-names.md)
