cirq.vis.relative_luminance

Returns the relative luminance according to W3C specification.

Spec: https://www.w3.org/TR/WCAG21/#dfn-relative-luminance

color a numpy array with the first 3 elements red, green, and blue with values in [0, 1].

relative luminance of color in [0, 1].