# UI contrast calculation Computed at full precision; displayed rounded to three decimals. Thresholds apply before rounding. These pairs do not certify an app. | Theme | Pair | Ratio | Threshold | Pass | | --- | --- | --- | --- | --- | | light | text/surface | 17.284:1 | 4.5:1 | yes | | light | muted/surface | 6.919:1 | 4.5:1 | yes | | light | onAction/action | 6.274:1 | 4.5:1 | yes | | light | danger/surface | 5.622:1 | 4.5:1 | yes | | light | success/surface | 5.200:1 | 4.5:1 | yes | | light | boundary/surface | 6.919:1 | 3:1 | yes | | light | focus/surface | 6.274:1 | 3:1 | yes | | light | text/canvas | 16.086:1 | 4.5:1 | yes | | dark | text/surface | 14.472:1 | 4.5:1 | yes | | dark | muted/surface | 11.394:1 | 4.5:1 | yes | | dark | onAction/action | 8.587:1 | 4.5:1 | yes | | dark | danger/surface | 8.524:1 | 4.5:1 | yes | | dark | success/surface | 10.230:1 | 4.5:1 | yes | | dark | boundary/surface | 4.822:1 | 3:1 | yes | | dark | focus/surface | 7.190:1 | 3:1 | yes | | dark | text/canvas | 17.284:1 | 4.5:1 | yes |