<!--
{
  "availability" : [
    "iOS: 15.0.0 -",
    "iPadOS: 15.0.0 -",
    "macCatalyst: 15.0.0 -",
    "macOS: 12.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "WebKit",
  "identifier" : "/documentation/WebKit/WKWebView/underPageBackgroundColor",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "WebKit"
    ],
    "preciseIdentifier" : "c:objc(cs)WKWebView(py)underPageBackgroundColor"
  },
  "title" : "underPageBackgroundColor"
}
-->

# underPageBackgroundColor

The color the web view displays behind the active page, visible when the user scrolls beyond the bounds of the page.

```
@NSCopying var underPageBackgroundColor: UIColor! { get set }
```

## Discussion

The web view derives the default value of this property from the content of the page, using the background colors of the `<html>` and `<body>` elements with the background color of the web view. To override the default color, set this property to a new color.

---

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)