<!--
{
  "availability" : [
    "macCatalyst: 13.1.0 -",
    "macOS: 10.5.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreGraphics",
  "identifier" : "/documentation/CoreGraphics/CGDisplayCopyColorSpace(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "Core Graphics"
    ],
    "preciseIdentifier" : "c:@F@CGDisplayCopyColorSpace"
  },
  "title" : "CGDisplayCopyColorSpace(_:)"
}
-->

# CGDisplayCopyColorSpace(_:)

Returns the color space for a display.

```
func CGDisplayCopyColorSpace(_ display: CGDirectDisplayID) -> CGColorSpace
```

## Parameters

`display`

The identifier of the display whose color space you want to obtain.

## Return Value

The current color space for the specified display. In Objective-C, you’re responsible for releasing the color space with the [`CGColorSpaceRelease`](/documentation/CoreGraphics/CGColorSpaceRelease) function.

## Discussion

This function returns a display-dependent ICC-based color space. You can use this function when rendering content for a specific display in order to produce color-matched output for that display.

---

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)