increase luminance threshold for better readability

This commit is contained in:
jonaswinkler 2021-02-25 22:49:38 +01:00
parent bae41cc50a
commit 0ded953181

View File

@ -150,7 +150,7 @@ class TagSerializer(MatchingModelSerializer):
0.587 * math.pow(rgb[1], 2) +
0.114 * math.pow(rgb[2], 2)
)
return "#ffffff" if luminance < 0.5 else "#000000"
return "#ffffff" if luminance < 0.53 else "#000000"
except ValueError:
return "#000000"