
/* IMPORT */

import luminance from '~/methods/luminance';
import type {Channels} from '~/types';

/* MAIN */

const isLight = ( color: string | Channels ): boolean => {

  return luminance ( color ) >= .5;

};

/* EXPORT */

export default isLight;
