Is there a color that has a 7:1+ contrast ratio on White and Black backgrounds?

PROFRBcom

Rakeback affiliate and professional poker player.
Joined
Apr 8, 2016
Messages
524
Reaction score
232
Is there a color that has a 7:1+ contrast ratio on White and Black backgrounds?

This is for WCAG compliance and I am curious if such a thing exists. I can't seem to find it with web search, but maybe some smarty pants at GPWA has solved this riddle?
 

preditor

Affiliate Guard Dog Member
Joined
Sep 14, 2010
Messages
453
Reaction score
303
why not check with some contrast checking tools? I use one, dont have the link on this iPad, however just google for it - maby that helps?
 

PROFRBcom

Rakeback affiliate and professional poker player.
Joined
Apr 8, 2016
Messages
524
Reaction score
232
I have used multiple contrast checking tools. However, randomly guessing a color with the perfect contrast ratio is a bit closer to the side of impossible than I would like.
 

preditor

Affiliate Guard Dog Member
Joined
Sep 14, 2010
Messages
453
Reaction score
303
Tell me about it!
I spend several hours (if not days) on just making my css a nightmare by adding a bunch of "nth-child(2) a class" etc to simple things like a ul list, where even and odd is something like #f9f9f9 and where the Google Insights shows "score 96" on usibility.

Ofcorse a blue background with a pink text in it or similar, can be a pain in the as, but a super light gray background on nth odd -list with dark blue text in it - whaaaaaaaat!

Btw this was the one i use: https://dequeuniversity.com/rules/axe/3.3/color-contrast
 

ddm

Former Member
Joined
Nov 16, 2018
Messages
489
Reaction score
287

Attachments

  • hidden.png
    hidden.png
    217.3 KB · Views: 36
Top