<!--
{
  "availability" : [
    "iOS: 8.0.0 -",
    "iPadOS: 8.0.0 -",
    "macCatalyst: 14.0.0 -",
    "tvOS: 17.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AVFoundation",
  "identifier" : "/documentation/AVFoundation/AVCaptureDevice/chromaticityValues(for:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "AVFoundation"
    ],
    "preciseIdentifier" : "c:objc(cs)AVCaptureDevice(im)chromaticityValuesForDeviceWhiteBalanceGains:"
  },
  "title" : "chromaticityValues(for:)"
}
-->

# chromaticityValues(for:)

Converts device-specific white balance RGB gain values to device-independent chromaticity values.

```
func chromaticityValues(for whiteBalanceGains: AVCaptureDevice.WhiteBalanceGains) -> AVCaptureDevice.WhiteBalanceChromaticityValues
```

## Parameters

`whiteBalanceGains`

The white balance gain values. You can’t specify a value of [`currentWhiteBalanceGains`](/documentation/AVFoundation/AVCaptureDevice/currentWhiteBalanceGains).

## Return Value

A structure that contains device-independent values.

## Discussion

Call this method to convert device-specific white balance RGB gain values to device-independent chromaticity (little x, little y) values.

Each change in the structure supports values between `1.0` and [`maxWhiteBalanceGain`](/documentation/AVFoundation/AVCaptureDevice/maxWhiteBalanceGain). This method throws an exception if you specify an unsupported value.

---

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)