# ColorScheme

Artifact: [androidx.wear.compose:compose-material3](https://developer.android.com/jetpack/androidx/releases/wear-compose) [View Source](https://cs.android.com/search?q=file:androidx/wear/compose/material3/ColorScheme.kt+class:androidx.wear.compose.material3.ColorScheme) Added in [1.5.0](https://developer.android.com/jetpack/androidx/releases/wear-compose#1.5.0)

<br />

```
class ColorScheme
```

<br />

*** ** * ** ***

A `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/ColorScheme` holds all the named color parameters for a `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/MaterialTheme`.

Color schemes are designed to be harmonious, ensure accessible text, and distinguish UI elements and surfaces from one another.

The Material color system and custom schemes provide default values for color as a starting point for customization.

To learn more about color schemes, see [Material Design Color System](https://m3.material.io/styles/color/the-color-system/color-roles).

## Summary

| ### Public constructors |
|---|
| `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/ColorScheme#ColorScheme(androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color)( primary: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color, primaryDim: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color, primaryContainer: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color, onPrimary: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color, onPrimaryContainer: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color, secondary: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color, secondaryDim: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color, secondaryContainer: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color, onSecondary: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color, onSecondaryContainer: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color, tertiary: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color, tertiaryDim: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color, tertiaryContainer: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color, onTertiary: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color, onTertiaryContainer: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color, surfaceContainerLow: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color, surfaceContainer: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color, surfaceContainerHigh: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color, onSurface: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color, onSurfaceVariant: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color, outline: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color, outlineVariant: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color, background: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color, onBackground: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color, error: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color, errorDim: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color, errorContainer: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color, onError: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color, onErrorContainer: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color )` |

| ### Public functions |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/ColorScheme` | `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/ColorScheme#copy(androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color)( primary: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color, primaryDim: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color, primaryContainer: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color, onPrimary: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color, onPrimaryContainer: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color, secondary: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color, secondaryDim: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color, secondaryContainer: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color, onSecondary: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color, onSecondaryContainer: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color, tertiary: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color, tertiaryDim: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color, tertiaryContainer: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color, onTertiary: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color, onTertiaryContainer: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color, surfaceContainerLow: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color, surfaceContainer: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color, surfaceContainerHigh: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color, onSurface: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color, onSurfaceVariant: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color, outline: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color, outlineVariant: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color, background: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color, onBackground: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color, error: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color, errorDim: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color, errorContainer: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color, onError: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color, onErrorContainer: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color )` Returns a copy of this Colors, optionally overriding some of the values. |
| `open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/ColorScheme#toString()()` |

| ### Public properties |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color` | `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/ColorScheme#background()` The background color that appears behind other content. |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color` | `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/ColorScheme#error()` Color that indicates remove, delete, close or dismiss actions, such as Swipe to Reveal. |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color` | `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/ColorScheme#errorContainer()` A less prominent container color than `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/ColorScheme#error()`, for components using the error state. |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color` | `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/ColorScheme#errorDim()` Indicates high priority errors or emergency actions, such as safety alerts, failed dialog overlays or stop buttons. |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color` | `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/ColorScheme#onBackground()` Color used for text and icons displayed on top of the background color. |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color` | `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/ColorScheme#onError()` Color used for text and icons displayed on top of the error color. |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color` | `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/ColorScheme#onErrorContainer()` Color used for text and icons on the errorContainer color. |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color` | `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/ColorScheme#onPrimary()` Color used for text and icons displayed on top of the primary color. |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color` | `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/ColorScheme#onPrimaryContainer()` The color (and state variants) that should be used for content on top of `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/ColorScheme#primaryContainer()`. |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color` | `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/ColorScheme#onSecondary()` Color used for text and icons displayed on top of the secondary color. |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color` | `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/ColorScheme#onSecondaryContainer()` The color (and state variants) that should be used for content on top of `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/ColorScheme#secondaryContainer()`. |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color` | `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/ColorScheme#onSurface()` Color used for text and icons displayed on top of the surface color. |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color` | `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/ColorScheme#onSurfaceVariant()` The color for secondary text and icons on top of `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/ColorScheme#surfaceContainer()`. |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color` | `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/ColorScheme#onTertiary()` Color used for text and icons displayed on top of the tertiary color. |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color` | `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/ColorScheme#onTertiaryContainer()` The color (and state variants) that should be used for content on top of `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/ColorScheme#tertiaryContainer()`. |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color` | `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/ColorScheme#outline()` The main color for primary outline components. |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color` | `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/ColorScheme#outlineVariant()` The secondary color for secondary outline components. |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color` | `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/ColorScheme#primary()` The primary color is the color displayed most frequently across your app's screens and components. |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color` | `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/ColorScheme#primaryContainer()` is a standout container color for key components. |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color` | `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/ColorScheme#primaryDim()` is less prominent than `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/ColorScheme#primary()` for component backgrounds |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color` | `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/ColorScheme#secondary()` The secondary color provides more ways to accent and distinguish your product. |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color` | `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/ColorScheme#secondaryContainer()` A tonal color to be used in containers. |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color` | `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/ColorScheme#secondaryDim()` is less prominent than `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/ColorScheme#secondary()` for component backgrounds. |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color` | `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/ColorScheme#surfaceContainer()` The main surface color that affect surfaces of components with large containment areas, such as Card and Button. |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color` | `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/ColorScheme#surfaceContainerHigh()` A surface color used for large containment components such Card and Button with high prominence. |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color` | `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/ColorScheme#surfaceContainerLow()` A surface color used for large containment components such as Card and Button with low prominence. |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color` | `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/ColorScheme#tertiary()` The tertiary color that can be used to balance primary and secondary colors, or bring heightened attention to an element. |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color` | `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/ColorScheme#tertiaryContainer()` A tonal color to be used in containers. |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color` | `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/ColorScheme#tertiaryDim()` A less prominent tertiary color that can be used to balance primary and secondary colors, or bring heightened attention to an element. |

| ### Extension functions |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color` | `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/ColorScheme.https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/ColorScheme#(androidx.wear.compose.material3.ColorScheme).contentColorFor(androidx.compose.ui.graphics.Color)(backgroundColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color)` The Material color system contains pairs of colors that are typically used for the background and content color inside a component. |

## Public constructors

### ColorScheme

Added in [1.5.0](https://developer.android.com/jetpack/androidx/releases/wear-compose#1.5.0)

```
ColorScheme(
    primary: Color = ColorTokens.Primary,
    primaryDim: Color = ColorTokens.PrimaryDim,
    primaryContainer: Color = ColorTokens.PrimaryContainer,
    onPrimary: Color = ColorTokens.OnPrimary,
    onPrimaryContainer: Color = ColorTokens.OnPrimaryContainer,
    secondary: Color = ColorTokens.Secondary,
    secondaryDim: Color = ColorTokens.SecondaryDim,
    secondaryContainer: Color = ColorTokens.SecondaryContainer,
    onSecondary: Color = ColorTokens.OnSecondary,
    onSecondaryContainer: Color = ColorTokens.OnSecondaryContainer,
    tertiary: Color = ColorTokens.Tertiary,
    tertiaryDim: Color = ColorTokens.TertiaryDim,
    tertiaryContainer: Color = ColorTokens.TertiaryContainer,
    onTertiary: Color = ColorTokens.OnTertiary,
    onTertiaryContainer: Color = ColorTokens.OnTertiaryContainer,
    surfaceContainerLow: Color = ColorTokens.SurfaceContainerLow,
    surfaceContainer: Color = ColorTokens.SurfaceContainer,
    surfaceContainerHigh: Color = ColorTokens.SurfaceContainerHigh,
    onSurface: Color = ColorTokens.OnSurface,
    onSurfaceVariant: Color = ColorTokens.OnSurfaceVariant,
    outline: Color = ColorTokens.Outline,
    outlineVariant: Color = ColorTokens.OutlineVariant,
    background: Color = ColorTokens.Background,
    onBackground: Color = ColorTokens.OnBackground,
    error: Color = ColorTokens.Error,
    errorDim: Color = ColorTokens.ErrorDim,
    errorContainer: Color = ColorTokens.ErrorContainer,
    onError: Color = ColorTokens.OnError,
    onErrorContainer: Color = ColorTokens.OnErrorContainer
)
```

## Public functions

### copy

Added in [1.6.0](https://developer.android.com/jetpack/androidx/releases/wear-compose#1.6.0)

```
fun copy(
    primary: Color = this.primary,
    primaryDim: Color = this.primaryDim,
    primaryContainer: Color = this.primaryContainer,
    onPrimary: Color = this.onPrimary,
    onPrimaryContainer: Color = this.onPrimaryContainer,
    secondary: Color = this.secondary,
    secondaryDim: Color = this.secondaryDim,
    secondaryContainer: Color = this.secondaryContainer,
    onSecondary: Color = this.onSecondary,
    onSecondaryContainer: Color = this.onSecondaryContainer,
    tertiary: Color = this.tertiary,
    tertiaryDim: Color = this.tertiaryDim,
    tertiaryContainer: Color = this.tertiaryContainer,
    onTertiary: Color = this.onTertiary,
    onTertiaryContainer: Color = this.onTertiaryContainer,
    surfaceContainerLow: Color = this.surfaceContainerLow,
    surfaceContainer: Color = this.surfaceContainer,
    surfaceContainerHigh: Color = this.surfaceContainerHigh,
    onSurface: Color = this.onSurface,
    onSurfaceVariant: Color = this.onSurfaceVariant,
    outline: Color = this.outline,
    outlineVariant: Color = this.outlineVariant,
    background: Color = this.background,
    onBackground: Color = this.onBackground,
    error: Color = this.error,
    errorDim: Color = this.errorDim,
    errorContainer: Color = this.errorContainer,
    onError: Color = this.onError,
    onErrorContainer: Color = this.onErrorContainer
): ColorScheme
```

Returns a copy of this Colors, optionally overriding some of the values.

### toString

```
open fun toString(): String
```

## Public properties

### background

```
val background: Color
```

The background color that appears behind other content.

### error

```
val error: Color
```

Color that indicates remove, delete, close or dismiss actions, such as Swipe to Reveal. Added as a slightly less alarming and urgent alternative to errorContainer than the error dim color.

### errorContainer

```
val errorContainer: Color
```

A less prominent container color than `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/ColorScheme#error()`, for components using the error state. Can also indicate an active error state which feels less interactive than a filled state, such as an active emergency sharing button, or on a failed overlay dialog..

### errorDim

```
val errorDim: Color
```

Indicates high priority errors or emergency actions, such as safety alerts, failed dialog overlays or stop buttons.

### onBackground

```
val onBackground: Color
```

Color used for text and icons displayed on top of the background color.

### onError

```
val onError: Color
```

Color used for text and icons displayed on top of the error color.

### onErrorContainer

```
val onErrorContainer: Color
```

Color used for text and icons on the errorContainer color.

### onPrimary

```
val onPrimary: Color
```

Color used for text and icons displayed on top of the primary color.

### onPrimaryContainer

```
val onPrimaryContainer: Color
```

The color (and state variants) that should be used for content on top of `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/ColorScheme#primaryContainer()`.

### onSecondary

```
val onSecondary: Color
```

Color used for text and icons displayed on top of the secondary color.

### onSecondaryContainer

```
val onSecondaryContainer: Color
```

The color (and state variants) that should be used for content on top of `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/ColorScheme#secondaryContainer()`.

### onSurface

```
val onSurface: Color
```

Color used for text and icons displayed on top of the surface color.

### onSurfaceVariant

```
val onSurfaceVariant: Color
```

The color for secondary text and icons on top of `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/ColorScheme#surfaceContainer()`.

### onTertiary

```
val onTertiary: Color
```

Color used for text and icons displayed on top of the tertiary color.

### onTertiaryContainer

```
val onTertiaryContainer: Color
```

The color (and state variants) that should be used for content on top of `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/ColorScheme#tertiaryContainer()`.

### outline

```
val outline: Color
```

The main color for primary outline components. The outline color role adds contrast for accessibility purposes.

### outlineVariant

```
val outlineVariant: Color
```

The secondary color for secondary outline components.

### primary

```
val primary: Color
```

The primary color is the color displayed most frequently across your app's screens and components.

### primaryContainer

```
val primaryContainer: Color
```

is a standout container color for key components.

### primaryDim

```
val primaryDim: Color
```

is less prominent than `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/ColorScheme#primary()` for component backgrounds

### secondary

```
val secondary: Color
```

The secondary color provides more ways to accent and distinguish your product.

### secondaryContainer

```
val secondaryContainer: Color
```

A tonal color to be used in containers.

### secondaryDim

```
val secondaryDim: Color
```

is less prominent than `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/ColorScheme#secondary()` for component backgrounds.

### surfaceContainer

```
val surfaceContainer: Color
```

The main surface color that affect surfaces of components with large containment areas, such as Card and Button.

### surfaceContainerHigh

```
val surfaceContainerHigh: Color
```

A surface color used for large containment components such Card and Button with high prominence.

### surfaceContainerLow

```
val surfaceContainerLow: Color
```

A surface color used for large containment components such as Card and Button with low prominence.

### tertiary

```
val tertiary: Color
```

The tertiary color that can be used to balance primary and secondary colors, or bring heightened attention to an element.

### tertiaryContainer

```
val tertiaryContainer: Color
```

A tonal color to be used in containers.

### tertiaryDim

```
val tertiaryDim: Color
```

A less prominent tertiary color that can be used to balance primary and secondary colors, or bring heightened attention to an element.

## Extension functions

### ColorScheme.contentColorFor

Artifact: [androidx.wear.compose:compose-material3](https://developer.android.com/jetpack/androidx/releases/wear-compose) [View Source](https://cs.android.com/search?q=file:androidx/wear/compose/material3/ColorScheme.kt+function:contentColorFor)

```
fun ColorScheme.contentColorFor(backgroundColor: Color): Color
```

The Material color system contains pairs of colors that are typically used for the background and content color inside a component. For example, a Button typically uses `primary` for its background, and `onPrimary` for the color of its content (usually text or iconography).

This function tries to match the provided `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/package-summary#(androidx.wear.compose.material3.ColorScheme).contentColorFor(androidx.compose.ui.graphics.Color)` to a 'background' color in this `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/ColorScheme`, and then will return the corresponding color used for content. For example, when `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/package-summary#(androidx.wear.compose.material3.ColorScheme).contentColorFor(androidx.compose.ui.graphics.Color)` is `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/ColorScheme#primary()`, this will return `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/ColorScheme#onPrimary()`.

If `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/package-summary#(androidx.wear.compose.material3.ColorScheme).contentColorFor(androidx.compose.ui.graphics.Color)` does not match a background color in the theme, this will return `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color#Unspecified()`.

| Returns |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color` | the matching content color for `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/package-summary#(androidx.wear.compose.material3.ColorScheme).contentColorFor(androidx.compose.ui.graphics.Color)`. If `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/package-summary#(androidx.wear.compose.material3.ColorScheme).contentColorFor(androidx.compose.ui.graphics.Color)` is not present in the theme's `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/ColorScheme`, then returns `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color#Unspecified()`. |

| See also |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/package-summary#(androidx.wear.compose.material3.ColorScheme).contentColorFor(androidx.compose.ui.graphics.Color)` |   |