aboutsummaryrefslogtreecommitdiffhomepage
path: root/contrast.md
blob: 74447a7f3481f4c9f2ef6c277a4c34ba737de302 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
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 |