<!--
{
  "availability" : [
    "macOS: 10.5.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSColorRenderingIntent",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:@E@NSColorRenderingIntent"
  },
  "title" : "NSColorRenderingIntent"
}
-->

# NSColorRenderingIntent

Constants that specify how Cocoa should handle colors that are not located within the destination color space of a graphics context.

```
enum NSColorRenderingIntent
```

## Overview

These constants are used by the property [`colorRenderingIntent`](/documentation/AppKit/NSGraphicsContext/colorRenderingIntent).

## Topics

### Constants

[`NSColorRenderingIntentDefault`](/documentation/AppKit/NSColorRenderingIntent/default)

Use the default rendering intent for the graphics context.

[`NSColorRenderingIntentAbsoluteColorimetric`](/documentation/AppKit/NSColorRenderingIntent/absoluteColorimetric)

Map colors outside of the gamut of the output device to the closest possible match inside the gamut of the output device.

[`NSColorRenderingIntentRelativeColorimetric`](/documentation/AppKit/NSColorRenderingIntent/relativeColorimetric)

Map colors outside of the gamut of the output device to the closest possible match inside the gamut of the output device.

[`NSColorRenderingIntentPerceptual`](/documentation/AppKit/NSColorRenderingIntent/perceptual)

Preserve the visual relationship between colors by compressing the gamut of the graphics context to fit inside the gamut of the output device.

[`NSColorRenderingIntentSaturation`](/documentation/AppKit/NSColorRenderingIntent/saturation)

Preserve the relative saturation value of the colors when converting into the gamut of the output device.

## Relationships

### Conforms To

[`BitwiseCopyable`](/documentation/Swift/BitwiseCopyable)

[`Equatable`](/documentation/Swift/Equatable)

[`Sendable`](/documentation/Swift/Sendable)

[`Hashable`](/documentation/Swift/Hashable)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`RawRepresentable`](/documentation/Swift/RawRepresentable)

---

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)