import type { TRgb } from '@fantasy-color/types/src' ; import luminanceRgb from '@fantasy-color/luminance-rgb' ; import contrastRatioLuminance from '@fantasy-color/contrast-ratio-luminance' ; export default ( color1 , color2 ) : number => contrastRatioLuminance ( luminanceRgb ( color1 ) , luminanceRgb ( color2 ) ) ;