Yelp

(The Help System)

color.a

Extract the alpha value of a color.

Parameters

color

A color specified in hexidecimal, rgb(), or rgba().

This template extracts the alpha, or opacity level, of a color. It returns a number between 0.0 and 1.0. It accepts six-digit and three-digit hexidecimal color codes, colors specified with rgb(), and colors specified with rgba(). It does not accept HSL or named HTML colors. For colors specified with anything other than rgba(), it always returns 1.0.