---
title: PageColor
framework: docc
role: symbol
role_heading: Directive
path: docc/pagecolor
---

# PageColor

A directive that specifies an accent color for a given documentation page.

## Declaration

```swift
@PageColor(_ color: Color)
```

## Parameters

- `color`: A context-dependent, standard color. (required)

## Mentioned in

Customizing the Appearance of Your Documentation Pages

## Overview

Overview Use the PageColor directive to provide a hint to the renderer as to how the page should be accented with color. The renderer may use this color, depending on the context, as a foundation for other colors used on the page. For example, Swift-DocC-Render uses this color as the primary background color of a page’s introduction section and adjusts other elements in the introduction section to account for the new background. This directive is only valid within a Metadata directive: @Metadata {     @PageColor(orange) }

## See Also

### Customizing the Presentation of a Page

- [DisplayName](docc/displayname.md)
- [PageImage](docc/pageimage.md)
- [PageKind](docc/pagekind.md)
- [CallToAction](docc/calltoaction.md)
- [TitleHeading](docc/titleheading.md)
