---
title: "AXNameFromColor(_:)"
framework: accessibility
role: symbol
role_heading: Function
path: "accessibility/axnamefromcolor(_:)"
---

# AXNameFromColor(_:)

Returns a localized description of the color to use in accessibility attributes.

## Declaration

```swift
func AXNameFromColor(_ color: CGColor) -> String
```

## Parameters

- `color`: The color that needs a name.

## Return Value

Return Value The name associated with the color.

## See Also

### Features

- [Customized accessibility content](accessibility/customized-accessibility-content.md)
- [Audio graphs](accessibility/audio-graphs.md)
- [Hearing device support](accessibility/hearing-device-support.md)
