---
id: portfolio.ds.color-text-contrast
name: "Contrast Text 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 Text Color

## Purpose
Readable foreground for a contrasting surface in either theme.

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

## Use
Use as the foreground paired with Contrast Background.

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

## 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.
