<!--
{
  "availability" : [
    "iOS: 5.0.0 - 7.0.0",
    "iPadOS: 5.0.0 - 7.0.0",
    "macCatalyst: 13.1.0 - 13.1.0",
    "tvOS: -",
    "visionOS: -",
    "watchOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UITextAttributeTextColor",
  "metadataVersion" : "0.1.0",
  "role" : "Global Variable",
  "symbol" : {
    "kind" : "Global Variable",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:@UITextAttributeTextColor"
  },
  "title" : "UITextAttributeTextColor"
}
-->

# UITextAttributeTextColor

The key to the text color in a text attributes dictionary.

```
extern NSString * const UITextAttributeTextColor;
```

## Discussion

The corresponding value is an instance of [`UIColor`](/documentation/UIKit/UIColor).

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)