<!--
{
  "availability" : [
    "iOS: 3.0.0 -",
    "iPadOS: 3.0.0 -",
    "macCatalyst: 13.1.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UIPasteboard/color",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(cs)UIPasteboard(py)color"
  },
  "title" : "color"
}
-->

# color

The color object of the first pasteboard item.

```
@NSCopying var color: UIColor? { get set }
```

## Discussion

The value stored in this property is a [`UIColor`](/documentation/UIKit/UIColor) object. The associated array of representation types is [`typeListColor`](/documentation/UIKit/UIPasteboard/typeListColor). Setting this property replaces all current items in the pasteboard with the new item. If the first item has no value of the indicated type, `nil` is returned.

> Note:
> Do not use this property to determine if a pasteboard contains color data. Instead, use the ``doc://com.apple.uikit/documentation/UIKit/UIPasteboard/hasColors`` property.

---

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)