<!--
{
  "availability" : [
    "iOS: 11.0.0 -",
    "iPadOS: 11.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.13.0 -",
    "tvOS: 11.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "PDFKit",
  "identifier" : "/documentation/PDFKit/PDFAnnotationKey/color",
  "metadataVersion" : "0.1.0",
  "role" : "Type Property",
  "symbol" : {
    "kind" : "Type Property",
    "modules" : [
      "PDFKit"
    ],
    "preciseIdentifier" : "c:@PDFAnnotationKeyColor"
  },
  "title" : "color"
}
-->

# color

An array of floats or a color object that specifies the annotation’s color.

```
static let color: PDFAnnotationKey
```

## Discussion

Annotations use the color for the following:

- The background of the annotation’s icon when it’s in a closed state
- The title bar of the annotation’s pop-up window
- The border of a link annotation
- The stroke of a circle, square, or line shape annotation

---

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)