import e from "../utils/index.js";
import t from "../color/index.js";
//#region ../../node_modules/khroma/dist/methods/luminance.js
var n = (n) => {
	let { r, g: i, b: a } = t.parse(n), o = .2126 * e.channel.toLinear(r) + .7152 * e.channel.toLinear(i) + .0722 * e.channel.toLinear(a);
	return e.lang.round(o);
};
//#endregion
export { n as default };
