---
title: "DatePickerColors"
description: "Colors for [DatePicker]."
type: "class"
---

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


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

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


```kotlin
public class DatePickerColors(
    public val activePickerContentColor: Color,
    public val inactivePickerContentColor: Color,
    public val invalidPickerContentColor: Color,
    public val pickerLabelColor: Color,
    public val nextButtonContentColor: Color,
    public val nextButtonContainerColor: Color,
    public val confirmButtonContentColor: Color,
    public val confirmButtonContainerColor: Color,
)
```


Colors for `DatePicker`.

#### Parameters

| | |
| --- | --- |
| activePickerContentColor | The content color of the currently active picker, that is, the picker currently being changed, such as the day, month or year. |
| inactivePickerContentColor | The content color of an inactive picker. |
| invalidPickerContentColor | The content color of invalid picker options. Picker options can be invalid when minValidDate or maxValidDate are specified for the `DatePicker`. |
| pickerLabelColor | The color of the picker label. |
| nextButtonContentColor | The content color of the next button. |
| nextButtonContainerColor | The container color of the next button. |
| confirmButtonContentColor | The content color of the confirm button. |
| confirmButtonContainerColor | The container color of the confirm button. |



## Functions

```kotlin
public fun copy(
        activePickerContentColor: Color = this.activePickerContentColor,
        inactivePickerContentColor: Color = this.inactivePickerContentColor,
        invalidPickerContentColor: Color = this.invalidPickerContentColor,
        pickerLabelColor: Color = this.pickerLabelColor,
        nextButtonContentColor: Color = this.nextButtonContentColor,
        nextButtonContainerColor: Color = this.nextButtonContainerColor,
        confirmButtonContentColor: Color = this.confirmButtonContentColor,
        confirmButtonContainerColor: Color = this.confirmButtonContainerColor,
    ): DatePickerColors
```


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

#### Parameters

| | |
| --- | --- |
| activePickerContentColor | The content color of the currently active picker, that is, the picker currently being changed, such as the day, month or year. |
| inactivePickerContentColor | The content color of an inactive picker. |
| invalidPickerContentColor | The content color of invalid picker options. |
| pickerLabelColor | The color of the picker label. |
| nextButtonContentColor | The content color of the next button. |
| nextButtonContainerColor | The container color of the next button. |
| confirmButtonContentColor | The content color of the confirm button. |
| confirmButtonContainerColor | The container color of the confirm button. |




