/* stylelint-disable number-max-precision */

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

/// Returns an RGB channel processed as XYZ
/// @link https://en.wikipedia.org/wiki/SRGB
/// @since 1.12.0 - The Sith
/// @param {Number} $channel - an RGB channel value
/// @return {Number} - xyz value
@function xyz($channel) {
	$channel: $channel / 255;

	@return if($channel <= .03928, $channel / 12.92, pow((($channel + .055) / 1.055), 2.4));
}
