WCAG
WCAG is the Web Content Accessibility Guidelines, a set of testable success criteria organised into A, AA, and AAA conformance levels.
Color contrast is only one criterion. Anything encoded by color alone also needs a text or shape cue to satisfy the guidelines. Continue with Color and contrast: making palettes readable for the longer explanation.