> **Experimental**
>
> `@aws-cdk/aws-medialive-alpha` is an [**experimental**](/stability) (alpha) package: its API may change in any release, without a major version bump.
# CaptionFontColor

Font color for burn-in and DVB-Sub captions.

- Stability: [Experimental](/cdk/api/stability.html)
- Source: [`lib/caption-settings.ts`](https://github.com/aws/aws-cdk/blob/v2.273.0-alpha.0/packages/@aws-cdk/aws-medialive-alpha/lib/caption-settings.ts#L30)

## Example

```ts
// Define a caption selector on the input attachment (see Input Attachment Settings below)
const captionSelector = medialive.CaptionSelector.embedded('captions');

// WebVTT captions — packaged alongside the video encode in the same output
const webvtt = medialive.EncodeConfiguration.caption({
  name: 'eng_webvtt',
  captionSelectorName: captionSelector.name,
  languageCode: 'eng',
  languageDescription: 'English',
  destination: medialive.CaptionDestination.webvtt(),
});

// Burned-in captions — rendered into the video, styled via the burn-in options
const burnIn = medialive.EncodeConfiguration.caption({
  name: 'eng_burnin',
  captionSelectorName: captionSelector.name,
  destination: medialive.CaptionDestination.burnIn({
    alignment: medialive.CaptionAlignment.CENTERED,
    fontColor: medialive.CaptionFontColor.WHITE,
    outlineColor: medialive.CaptionOutlineColor.BLACK,
    fontSize: medialive.CaptionFontSize.AUTO,
  }),
});
```

## Properties

- `BLACK`: [CaptionFontColor](/cdk/api/v2/docs/@aws-cdk_aws-medialive-alpha.CaptionFontColor.html) (required) (static) — Black.

- `BLUE`: [CaptionFontColor](/cdk/api/v2/docs/@aws-cdk_aws-medialive-alpha.CaptionFontColor.html) (required) (static) — Blue.

- `GREEN`: [CaptionFontColor](/cdk/api/v2/docs/@aws-cdk_aws-medialive-alpha.CaptionFontColor.html) (required) (static) — Green.

- `RED`: [CaptionFontColor](/cdk/api/v2/docs/@aws-cdk_aws-medialive-alpha.CaptionFontColor.html) (required) (static) — Red.

- `value`: string (required) — The underlying string value passed to CloudFormation.

- `WHITE`: [CaptionFontColor](/cdk/api/v2/docs/@aws-cdk_aws-medialive-alpha.CaptionFontColor.html) (required) (static) — White.

- `YELLOW`: [CaptionFontColor](/cdk/api/v2/docs/@aws-cdk_aws-medialive-alpha.CaptionFontColor.html) (required) (static) — Yellow.

## Methods

- `of(value: string): CaptionFontColor // chainable` (static) — A value not yet modelled by AWS CDK.
