<!--
{
  "availability" : [
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -",
    "tvOS: 27.0.0 -",
    "visionOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "RealityKit",
  "identifier" : "/documentation/RealityKit/LowLevelRenderer/setColorMatch(targetingColorSpace:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "RealityKit"
    ],
    "preciseIdentifier" : "s:19RealityCoreRenderer08LowLevelC0C13setColorMatch09targetingG5SpaceySo07CGColorJ3Refa_tAA0deC5ErrorVYKF"
  },
  "title" : "setColorMatch(targetingColorSpace:)"
}
-->

# setColorMatch(targetingColorSpace:)

Updates the color match by computing a gamut conversion matrix from the renderer’s
working color space to the given target display color space.

```
final func setColorMatch(targetingColorSpace targetColorSpace: CGColorSpace) throws(LowLevelRendererError)
```

## Parameters

`targetColorSpace`

The target display color space to convert to.

## Discussion> Throws: ``doc://com.apple.RealityKit/documentation/RealityKit/LowLevelRendererError`` if the target color space is not a supported linear gamut.

---

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)