---
title: "TabColors"
description: "Represents the colors used in a tab in different states.
- See [TabDefaults.pillIndicatorTabColors] for the default colors used in a [Tab] when using a Pill indicator.
- See [TabDefaults.underlinedIndicatorTabColors] for the default colors used in a [Tab] when using an Underlined indicator"
type: "class"
---

<div class='type'>Class</div>


<a id='references'></a>

<div class='sourceset sourceset-android'>Android</div>


```kotlin
class TabColors
internal constructor(
    internal val contentColor: Color,
    internal val inactiveContentColor: Color = contentColor.copy(alpha = 0.4f),
    internal val selectedContentColor: Color,
    internal val focusedContentColor: Color,
    internal val focusedSelectedContentColor: Color,
    internal val disabledContentColor: Color,
    internal val disabledInactiveContentColor: Color = disabledContentColor.copy(alpha = 0.4f),
    internal val disabledSelectedContentColor: Color,
)
```


Represents the colors used in a tab in different states.
- See `TabDefaults.pillIndicatorTabColors` for the default colors used in a `Tab` when using a Pill indicator.
- See `TabDefaults.underlinedIndicatorTabColors` for the default colors used in a `Tab` when using an Underlined indicator



