Alpha
  • 18 May 2022
  • 1 Minute to read
  • Dark
    Light
  • PDF

Alpha

  • Dark
    Light
  • PDF

Returns a decimal between 0 and 1 representing the color's alpha component.

Function signature

ALPHA(color: String) => Number
Parameter Description
Color Color

Examples

Formula Return value
ALPHA("#ff0") 1
ALPHA("rgba(10, 20, 40, 0.5)") 0.5
ALPHA("hsl(80, 20%, 40%)") 1
ALPHA("red") 1

Was this article helpful?

What's Next