Compute the WCAG relative luminance of any color, with per-channel breakdown.
/* Relative luminance */ L = 0.2126 × 0.0044 + 0.7152 × 0.3763 + 0.0722 × 0.8148 L = 0.3289