import Utils from "./dist-utils-index.js";
import Color from "./dist-color-index.js";
const luminance = (color) => {
  const { r, g, b } = Color.parse(color);
  const luminance2 = 0.2126 * Utils.channel.toLinear(r) + 0.7152 * Utils.channel.toLinear(g) + 0.0722 * Utils.channel.toLinear(b);
  return Utils.lang.round(luminance2);
};
export {
  luminance as default
};
//# sourceMappingURL=dist-methods-luminance.js.map
