---
title: "setTextColor(_:)"
framework: watchkit
role: symbol
role_heading: Instance Method
path: "watchkit/wkinterfacelabel/settextcolor(_:)"
---

# setTextColor(_:)

Sets the color to apply to plain text strings.

## Declaration

```swift
func setTextColor(_ color: UIColor?)
```

## Parameters

- `color`: The custom color to be applied to the label’s text. Specifying nil removes the custom color and returns the text to the color specified in the storyboard file. The default label color is white.

## Mentioned in

Connecting Your User Interface to Your Code

## Discussion

Discussion The value set by this method represents the default color applied to text. This color is used unless you explicitly override it in an attributed string using the NSForegroundColorAttributeName attribute.

## See Also

### Setting the Label Text

- [setText(_:)](watchkit/wkinterfacelabel/settext(_:).md)
- [setAttributedText(_:)](watchkit/wkinterfacelabel/setattributedtext(_:).md)
