Accessibility
Text contrast ratio
Opaque sRGB contrast uses relative luminance; ordinary AA text generally needs 4.5:1, large text 3:1.
Formal Syntax & Structure
react syntaxreact
contrast("#000000", "#ffffff")Working Example
Example Snippetreact
contrast("#000000", "#ffffff")