<!--
{
  "availability" : [
    "macOS: 10.5.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSBitmapImageRep/PropertyKey/fallbackBackgroundColor",
  "metadataVersion" : "0.1.0",
  "role" : "Type Property",
  "symbol" : {
    "kind" : "Type Property",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:@NSImageFallbackBackgroundColor"
  },
  "title" : "fallbackBackgroundColor"
}
-->

# fallbackBackgroundColor

Specifies the background color to use when writing to an image format (such as JPEG) that doesn’t support alpha.

```
static let fallbackBackgroundColor: NSBitmapImageRep.PropertyKey
```

## Discussion

The color’s alpha value is ignored. The default background color, when this property is not specified, is white. The value of the property should be an [`NSColor`](/documentation/AppKit/NSColor) object. This constant corresponds to the <doc://com.apple.documentation/documentation/ImageIO/kCGImageDestinationBackgroundColor> constant in Quartz.

---

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)