<!--
{
  "availability" : [
    "FxPlug: 4.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "professional_video_applications",
  "identifier" : "/documentation/professional_video_applications/FxColorGamutAPI_v2/colorMatrixFromDesiredRGBToYCbCr()",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Professional Video Applications"
    ],
    "preciseIdentifier" : "c:objc(pl)FxColorGamutAPI_v2(im)colorMatrixFromDesiredRGBToYCbCr"
  },
  "title" : "colorMatrixFromDesiredRGBToYCbCr()"
}
-->

# colorMatrixFromDesiredRGBToYCbCr()

Returns a color matrix that is appropriate for converting RGB values in the project’s working gamut into YCbCr values.

```
func colorMatrixFromDesiredRGBToYCbCr() -> FxMatrix44!
```

## Return Value

A 4x4 matrix for converting an RGB value into YCbCr.

## Discussion

You can use the first row of the resulting matrix of this function to convert from RGB to grayscale.

---

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)