<!--
{
  "availability" : [
    "macOS: 10.5.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSGraphicsContext/colorRenderingIntent",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSGraphicsContext(py)colorRenderingIntent"
  },
  "title" : "colorRenderingIntent"
}
-->

# colorRenderingIntent

The color rendering intent in the graphics context’s graphics state.

```
var colorRenderingIntent: NSColorRenderingIntent { get set }
```

## Discussion

A value that specifies the rendering intent currently used by the graphics context. For possible values, see [`NSColorRenderingIntent`](/documentation/AppKit/NSColorRenderingIntent). The rendering intent specifies how Cocoa should handle colors that are not located within the gamut of the destination color space of a graphics context. If you do not explicitly set the rendering intent, and sampled images are being drawn, [`NSGraphicsContext`](/documentation/AppKit/NSGraphicsContext) uses perceptual rendering intent. Otherwise, [`NSGraphicsContext`](/documentation/AppKit/NSGraphicsContext) uses relative colorimetric rendering intent.

---

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)