I'm using this code to get CSS variable color and check its contrast:
const titleColor = getComputedStyle(document.documentElement).getPropertyValue('--titleTextColor')
And every time I get this error:
Error: Invalid Color : #000000 at ColorContrastChecker.hexToLuminance
Can't figure out why that happens.