/* stylelint-disable number-max-precision */
////
/// @author Giana Blantin
////

/// Reverse of xyz()
/// @link https://en.wikipedia.org/wiki/SRGB
/// @since 1.12.0 - The Sith
/// @param {Number} $channel - an xyz value
/// @return {Number} - rgb channel value
@function srgb($channel) {
	@return 255 * if($channel <= .0031308, $channel * 12.92, 1.055 * pow($channel, 1 / 2.4) - .055);
}
