---
title: alpha
framework: coregraphics
role: symbol
role_heading: Instance Property
path: coregraphics/cgcolor/alpha
---

# alpha

Returns the value of the alpha component associated with a color.

## Declaration

```swift
var alpha: CGFloat { get }
```

## See Also

### Examining a Color

- [colorSpace](coregraphics/cgcolor/colorspace.md)
- [components](coregraphics/cgcolor/components.md)
- [numberOfComponents](coregraphics/cgcolor/numberofcomponents.md)
- [pattern](coregraphics/cgcolor/pattern.md)
