---
title: kCMTextMarkupAttribute_ForegroundColorARGB
framework: coremedia
role: symbol
role_heading: Global Variable
path: coremedia/kcmtextmarkupattribute_foregroundcolorargb
---

# kCMTextMarkupAttribute_ForegroundColorARGB

A foreground color for the text.

## Declaration

```swift
let kCMTextMarkupAttribute_ForegroundColorARGB: CFString
```

## Discussion

Discussion This attribute’s value must be a CFArray of four CFNumbers representing alpha, red, green, and blue fields with values between 0.0 and 1.0. The system interprets the red, green, and blue components in the sRGB color space. The alpha indicates the opacity from 0.0 for transparent to 1.0 for 100 percent opaque.

## See Also

### Colors

- [kCMTextMarkupAttribute_BackgroundColorARGB](coremedia/kcmtextmarkupattribute_backgroundcolorargb.md)
- [kCMTextMarkupAttribute_CharacterBackgroundColorARGB](coremedia/kcmtextmarkupattribute_characterbackgroundcolorargb.md)
