////
/// @author Giana Blantin
////

/// Get the luminance of color
/// @since 1.12.0 - The Sith
/// @param {Color} $color - Color to be modified
/// @return {Number} - relative luminance of color
@function luminance($color) {
	$r: red($color);
	$g: green($color);
	$b: blue($color);
	$red: xyz($r);
	$green: xyz($g);
	$blue: xyz($b);

	@return $red * .2126 + $green * .7152 + $blue * .0722;
}
