# `GSFont.color`

*Instance Property*

The color label used to organize the font, or `nil` if no color label is assigned.

## Declaration

```swift
var color: NSColor? { get set }
```

```objc
@property (nonatomic, retain) NSColor * color;
```

```python
color() -> NSColor
setColor_(color: NSColor)
```

## Discussion

For a standard color label, this resolves [`GSFont.colorIndex`](/Core/GlyphsCore/GSFont/colorIndex) using the current label color palette. Setting a color stores a custom color label and clears [`GSFont.colorIndex`](/Core/GlyphsCore/GSFont/colorIndex).

## See Also

### Color Label

- [`GSFont.colorIndex`](/Core/GlyphsCore/GSFont/colorIndex) — A standard color label, or [`GSLabelColor.GSLabelColorNoColor`](/Core/GlyphsCore/GSLabelColor/GSLabelColorNoColor) if the font has a custom color label or no color label.

