---
id: portfolio.ds.color-background-contrast
name: "Contrast Background Color"
type: token
status: active
relations: []
sources: ["packages/design-system/src/styles/tokens.css","apps/portfolio-site/src/design-system/docs/colors.astro"]
catalog: ["apps/portfolio-site/src/design-system/docs/colors.astro"]
previews: []
---
# Contrast Background Color

## Purpose
A surface that contrasts with the page in either theme.

## Contract
- Default: `--color-bg-contrast` = `#000000`.
- Inverse: `--color-bg-contrast-inverse` = `#ffffff`.

## Use
Use as the background paired with Contrast Text.

## Do Not Use
Do not use as a substitute for the ordinary page background.

## Accessibility
The paired foreground and background have a 21:1 contrast ratio in both themes.

## Verification
In Colors, switch Inverse between false and true and compare the two swatches.
