Lowered contrast threshold

pull/1049/head
Ryan Alexander 2021-08-17 19:33:09 +10:00 committed by GitHub
parent b7989ff74f
commit 3b19299cd7
1 changed files with 1 additions and 1 deletions

View File

@ -461,5 +461,5 @@ function getContrastingColour(hex: string) {
const g = parseInt(hex.substr(2, 2), 16);
const b = parseInt(hex.substr(4, 2), 16);
const cc = (r * 299 + g * 587 + b * 114) / 1000;
return cc >= 128 ? "black" : "white";
return cc >= 75 ? "black" : "white";
}