luminance() {
    let rgb = toRgb(this.h, this.s, this.l),
      luminance = Math.sqrt(0.299 * Math.pow(rgb.r, 2) + 0.587 * Math.pow(rgb.g, 2) + 0.114 * Math.pow(rgb.b, 2));

    return luminance / 255;
  }
/**
   * Calculates the perceived luminance of the color.
   * @return { Number } A value in the range 0-1 where a low value is considered dark and vice versa.
   */
Calculates the perceived luminance of the color.
@return { Number } A value in the range 0-1 where a low value is considered dark and vice versa.
Calculates the perceived luminance of the color . @return { Number } A value in the range 0 - 1 where a low value is considered dark and vice versa .
luminance() {
    let rgb = toRgb(this.h, this.s, this.l),
      luminance = Math.sqrt(0.299 * Math.pow(rgb.r, 2) + 0.587 * Math.pow(rgb.g, 2) + 0.114 * Math.pow(rgb.b, 2));
    return luminance / 255;
  }
luminance ( ) { let rgb = toRgb ( this . h , this . s , this . l ) , luminance = Math . sqrt ( 0.299 * Math . pow ( rgb . r , 2 ) + 0.587 * Math . pow ( rgb . g , 2 ) + 0.114 * Math . pow ( rgb . b , 2 ) ) ; return luminance / 255 ; }
Calculates the perceived luminance of the color.
Calculates the perceived luminance of the color .