<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@csstools/css-color-parser](./css-color-parser.md) &gt; [ColorData](./css-color-parser.colordata.md) &gt; [alpha](./css-color-parser.colordata.alpha.md)

## ColorData.alpha property

The alpha channel. This is either a number between `0` and `1` or a `ComponentValue` object.

Since most computations are not dependent on the alpha channel, we allow things like `var(--some-alpha)` as an alpha channel value for most inputs.

**Signature:**

```typescript
alpha: number | ComponentValue;
```
