---
title: cgColor
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nscolor/cgcolor
---

# cgColor

The Core Graphics color object corresponding to the color.

## Declaration

```swift
var cgColor: CGColor { get }
```

## Discussion

Discussion This property always contains a valid color, even though the value may be an approximation in some cases. There is no guaranteed round-trip color fidelity.
