---
title: headroom
framework: swiftui
role: symbol
role_heading: Instance Property
path: swiftui/color/resolvedhdr/headroom
---

# headroom

The content headroom of the color.

## Declaration

```swift
var headroom: Float? { get set }
```

## Discussion

Discussion This is the ratio of nominal peak luminance (“peak white”) to nominal diffuse luminance (“reference white” or “diffuse white”). Headroom is a linear quantity, i.e. there is no gamma function applied to it.

## See Also

### Getting color properties

- [red](swiftui/color/resolvedhdr/red.md)
- [green](swiftui/color/resolvedhdr/green.md)
- [blue](swiftui/color/resolvedhdr/blue.md)
- [linearRed](swiftui/color/resolvedhdr/linearred.md)
- [linearGreen](swiftui/color/resolvedhdr/lineargreen.md)
- [linearBlue](swiftui/color/resolvedhdr/linearblue.md)
- [opacity](swiftui/color/resolvedhdr/opacity.md)
