Appearance
function isDark(hex): boolean;
Returns true if the hex color is perceptually dark (luminance ≤ 0.5).
true
hex
string
boolean
isDark('#000000') // => true isDark('#ffffff') // => false
1.0.0