WCAG relative luminance of linear sRGB.
double luminanceLin(LinRgb c) => 0.2126 * c.$1 + 0.7152 * c.$2 + 0.0722 * c.$3;