aboutsummaryrefslogtreecommitdiffhomepage
path: root/contrast.md
diff options
context:
space:
mode:
authorJason McCormick <jason@mfamily.org>2026-11-27 11:59:34 -0500
committerJason McCormick <jason@mfamily.org>2026-11-27 11:59:34 -0500
commit707ff20900a282968c9c816ded4fe5b7e18d09aa (patch)
treec9053e37a8f7f86c463c3270908665438e4d0f22 /contrast.md
initial add
Diffstat (limited to 'contrast.md')
-rw-r--r--contrast.md78
1 files changed, 78 insertions, 0 deletions
diff --git a/contrast.md b/contrast.md
new file mode 100644
index 0000000..74447a7
--- /dev/null
+++ b/contrast.md
@@ -0,0 +1,78 @@
+# Contrast checks
+
+Calculated WCAG relative-luminance contrast ratios for selected token pairs. Normal text target 4.5:1; control borders/focus target 3:1. This is not full accessibility certification.
+
+| Mode | Foreground | Background | Ratio | Target | Result |
+|---|---|---|---:|---:|---|
+| light | text | canvas | 13.22:1 | 4.5:1 | PASS |
+| light | text | surface | 14.82:1 | 4.5:1 | PASS |
+| light | text | raised | 11.28:1 | 4.5:1 | PASS |
+| light | muted | canvas | 5.58:1 | 4.5:1 | PASS |
+| light | muted | surface | 6.26:1 | 4.5:1 | PASS |
+| light | muted | raised | 4.76:1 | 4.5:1 | PASS |
+| light | link | canvas | 6.07:1 | 4.5:1 | PASS |
+| light | link | surface | 6.81:1 | 4.5:1 | PASS |
+| light | link | raised | 5.18:1 | 4.5:1 | PASS |
+| light | success | canvas | 5.76:1 | 4.5:1 | PASS |
+| light | success | surface | 6.46:1 | 4.5:1 | PASS |
+| light | success | raised | 4.92:1 | 4.5:1 | PASS |
+| light | warning | canvas | 6.18:1 | 4.5:1 | PASS |
+| light | warning | surface | 6.93:1 | 4.5:1 | PASS |
+| light | warning | raised | 5.28:1 | 4.5:1 | PASS |
+| light | danger | canvas | 6.07:1 | 4.5:1 | PASS |
+| light | danger | surface | 6.81:1 | 4.5:1 | PASS |
+| light | danger | raised | 5.18:1 | 4.5:1 | PASS |
+| light | success | success-bg | 5.48:1 | 4.5:1 | PASS |
+| light | warning | warning-bg | 5.67:1 | 4.5:1 | PASS |
+| light | danger | danger-bg | 5.36:1 | 4.5:1 | PASS |
+| light | info | info-bg | 5.04:1 | 4.5:1 | PASS |
+| light | on-primary | primary | 5.82:1 | 4.5:1 | PASS |
+| light | on-primary | primary-hover | 7.41:1 | 4.5:1 | PASS |
+| light | on-primary | primary-active | 9.42:1 | 4.5:1 | PASS |
+| light | on-firefly | firefly | 5.73:1 | 4.5:1 | PASS |
+| light | on-firefly | firefly-hover | 7.83:1 | 4.5:1 | PASS |
+| light | on-firefly | firefly-active | 10.20:1 | 4.5:1 | PASS |
+| light | control-border | canvas | 3.58:1 | 3:1 | PASS |
+| light | control-border | surface | 4.02:1 | 3:1 | PASS |
+| light | control-border | raised | 3.06:1 | 3:1 | PASS |
+| light | control-border | inset | 3.78:1 | 3:1 | PASS |
+| light | focus | canvas | 6.07:1 | 3:1 | PASS |
+| light | focus | surface | 6.81:1 | 3:1 | PASS |
+| light | focus | raised | 5.18:1 | 3:1 | PASS |
+| light | focus | inset | 6.40:1 | 3:1 | PASS |
+| dark | text | canvas | 14.37:1 | 4.5:1 | PASS |
+| dark | text | surface | 12.77:1 | 4.5:1 | PASS |
+| dark | text | raised | 10.92:1 | 4.5:1 | PASS |
+| dark | muted | canvas | 7.65:1 | 4.5:1 | PASS |
+| dark | muted | surface | 6.80:1 | 4.5:1 | PASS |
+| dark | muted | raised | 5.81:1 | 4.5:1 | PASS |
+| dark | link | canvas | 12.12:1 | 4.5:1 | PASS |
+| dark | link | surface | 10.77:1 | 4.5:1 | PASS |
+| dark | link | raised | 9.21:1 | 4.5:1 | PASS |
+| dark | success | canvas | 7.06:1 | 4.5:1 | PASS |
+| dark | success | surface | 6.27:1 | 4.5:1 | PASS |
+| dark | success | raised | 5.36:1 | 4.5:1 | PASS |
+| dark | warning | canvas | 8.96:1 | 4.5:1 | PASS |
+| dark | warning | surface | 7.96:1 | 4.5:1 | PASS |
+| dark | warning | raised | 6.80:1 | 4.5:1 | PASS |
+| dark | danger | canvas | 8.30:1 | 4.5:1 | PASS |
+| dark | danger | surface | 7.38:1 | 4.5:1 | PASS |
+| dark | danger | raised | 6.30:1 | 4.5:1 | PASS |
+| dark | success | success-bg | 5.29:1 | 4.5:1 | PASS |
+| dark | warning | warning-bg | 6.85:1 | 4.5:1 | PASS |
+| dark | danger | danger-bg | 6.71:1 | 4.5:1 | PASS |
+| dark | info | info-bg | 6.46:1 | 4.5:1 | PASS |
+| dark | on-primary | primary | 5.82:1 | 4.5:1 | PASS |
+| dark | on-primary | primary-hover | 5.07:1 | 4.5:1 | PASS |
+| dark | on-primary | primary-active | 7.12:1 | 4.5:1 | PASS |
+| dark | on-firefly | firefly | 8.96:1 | 4.5:1 | PASS |
+| dark | on-firefly | firefly-hover | 10.64:1 | 4.5:1 | PASS |
+| dark | on-firefly | firefly-active | 6.85:1 | 4.5:1 | PASS |
+| dark | control-border | canvas | 4.10:1 | 3:1 | PASS |
+| dark | control-border | surface | 3.65:1 | 3:1 | PASS |
+| dark | control-border | raised | 3.12:1 | 3:1 | PASS |
+| dark | control-border | inset | 4.22:1 | 3:1 | PASS |
+| dark | focus | canvas | 8.96:1 | 3:1 | PASS |
+| dark | focus | surface | 7.96:1 | 3:1 | PASS |
+| dark | focus | raised | 6.80:1 | 3:1 | PASS |
+| dark | focus | inset | 9.21:1 | 3:1 | PASS |