5978a3328339d97de18f21299e895b1a7bf7cbb6
contrastTextColor matched only #rrggbb and silently returned the dark fallback for every other form — #000 and #369 produced a black label on a near-black fill. colorLuminance in the same file already expanded short hex, so this was an inconsistency, not a contract. rgbToHex threw a TypeError on non-matching input (matches.length on null) and rejected rgba() and whitespace-free rgb strings; it now returns and ignores the alpha channel.
Languages
JavaScript
100%