
/* IMPORT */

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

/* MAIN */

const lightness = ( color: string | Channels ): number => {

  return channel ( color, 'l' );

};

/* EXPORT */

export default lightness;
