All 57 pairings pass WCAG AA in light and dark
Text needs 4.5:1, icons 3:1. The build checks exactly these pairings and warns on any below (fails with --strict). A shield marks a colour the build moved to get there.
APCA Lc is shown for reference only and never fails a pairing. Roughly 75 for body text, 60 for other text, 45 for large text, 30 for icons.
| Pairing | Light | Dark | Status |
|---|---|---|---|
| Labels on fillsA fill and its own -foreground: buttons, badges, chips. | |||
| primary-foreground on primarymin 4.5:1 | Aa5.17Lc 80 · body text | Aa6.05Lc 44 · non-text | auto-fixed |
| secondary-foreground on secondarymin 4.5:1 | Aa16.12Lc 98 · body text | Aa14.27Lc 101 · body text | |
| destructive-foreground on destructivemin 4.5:1 | Aa5.00Lc 78 · body text | Aa6.02Lc 45 · non-text | auto-fixed |
| success-foreground on successmin 4.5:1 | Aa5.02Lc 80 · body text | Aa8.73Lc 59 · large text | |
| warning-foreground on warningmin 4.5:1 | Aa5.02Lc 79 · body text | Aa11.92Lc 75 · content text | |
| info-foreground on infomin 4.5:1 | Aa5.93Lc 84 · body text | Aa7.18Lc 51 · large text | |
| accent-foreground on accentmin 4.5:1 | Aa16.12Lc 98 · body text | Aa14.27Lc 101 · body text | |
| card-foreground on cardmin 4.5:1 | Aa19.90Lc 106 · body text | Aa16.97Lc 103 · body text | |
| popover-foreground on popovermin 4.5:1 | Aa19.90Lc 106 · body text | Aa16.97Lc 103 · body text | |
| sidebar-foreground on sidebarmin 4.5:1 | Aa19.06Lc 103 · body text | Aa16.97Lc 103 · body text | |
| sidebar-primary-foreground on sidebar-primarymin 4.5:1 | Aa5.17Lc 80 · body text | Aa6.05Lc 44 · non-text | auto-fixed |
| sidebar-accent-foreground on sidebar-accentmin 4.5:1 | Aa16.12Lc 98 · body text | Aa14.27Lc 101 · body text | |
| Text on surfacesBody and muted text on the page, cards and muted panels. | |||
| muted-foreground on mutedmin 4.5:1 | Aa7.03Lc 80 · body text | Aa5.81Lc 48 · large text | |
| muted-foreground on backgroundmin 4.5:1 | Aa7.73Lc 87 · body text | Aa7.76Lc 52 · large text | |
| foreground on backgroundmin 4.5:1 | Aa19.90Lc 106 · body text | Aa19.06Lc 104 · body text | |
| muted-foreground on cardmin 4.5:1 | Aa7.73Lc 87 · body text | Aa6.91Lc 51 · large text | |
| foreground on cardmin 4.5:1 | Aa19.90Lc 106 · body text | Aa16.97Lc 103 · body text | |
| foreground on mutedmin 4.5:1 | Aa18.10Lc 99 · body text | Aa14.27Lc 101 · body text | |
| foreground on primary-subtlemin 4.5:1 | Aa16.31Lc 93 · body text | Aa14.08Lc 101 · body text | |
| muted-foreground on primary-subtlemin 4.5:1 | Aa6.34Lc 74 · content text | Aa5.73Lc 48 · large text | |
| foreground on success-subtlemin 4.5:1 | Aa18.12Lc 99 · body text | Aa14.28Lc 101 · body text | |
| muted-foreground on success-subtlemin 4.5:1 | Aa7.04Lc 80 · body text | Aa5.82Lc 48 · large text | |
| foreground on warning-subtlemin 4.5:1 | Aa17.87Lc 99 · body text | Aa14.35Lc 101 · body text | |
| muted-foreground on warning-subtlemin 4.5:1 | Aa6.94Lc 80 · body text | Aa5.84Lc 48 · large text | |
| foreground on info-subtlemin 4.5:1 | Aa17.34Lc 97 · body text | Aa13.30Lc 100 · body text | |
| muted-foreground on info-subtlemin 4.5:1 | Aa6.74Lc 78 · body text | Aa5.42Lc 47 · large text | |
| foreground on destructive-subtlemin 4.5:1 | Aa16.29Lc 92 · body text | Aa15.47Lc 102 · body text | |
| muted-foreground on destructive-subtlemin 4.5:1 | Aa6.33Lc 73 · content text | Aa6.30Lc 49 · large text | |
| foreground on muted-subtlemin 4.5:1 | Aa19.06Lc 103 · body text | Aa16.97Lc 103 · body text | |
| muted-foreground on muted-subtlemin 4.5:1 | Aa7.41Lc 84 · body text | Aa6.91Lc 51 · large text | |
| Tones as textA tone used as ink: links, status text, coloured icons. | |||
| primary on backgroundmin 4.5:1 | Aa5.17Lc 75 · content text | Aa6.05Lc 42 · non-text | auto-fixed |
| primary on cardmin 4.5:1 | Aa5.17Lc 75 · content text | Aa5.38Lc 41 · non-text | auto-fixed |
| primary on mutedmin 4.5:1 | Aa4.70Lc 68 · content text | Aa4.53Lc 39 · non-text | auto-fixed |
| primary on accentmin 4.5:1 | Aa4.70Lc 68 · content text | Aa4.53Lc 39 · non-text | auto-fixed |
| success on backgroundmin 4.5:1 | Aa5.02Lc 74 · content text | Aa8.73Lc 58 · large text | |
| success on cardmin 4.5:1 | Aa5.02Lc 74 · content text | Aa7.78Lc 57 · large text | |
| success on mutedmin 4.5:1 | Aa4.56Lc 68 · content text | Aa6.54Lc 54 · large text | |
| success on accentmin 4.5:1 | Aa4.56Lc 68 · content text | Aa6.54Lc 54 · large text | |
| warning on backgroundmin 4.5:1 | Aa5.02Lc 74 · content text | Aa11.92Lc 74 · content text | |
| warning on cardmin 4.5:1 | Aa5.02Lc 74 · content text | Aa10.61Lc 73 · content text | |
| warning on mutedmin 4.5:1 | Aa4.57Lc 68 · content text | Aa8.92Lc 70 · content text | |
| warning on accentmin 4.5:1 | Aa4.57Lc 68 · content text | Aa8.92Lc 70 · content text | |
| info on backgroundmin 4.5:1 | Aa5.93Lc 79 · body text | Aa7.18Lc 49 · large text | |
| info on cardmin 4.5:1 | Aa5.93Lc 79 · body text | Aa6.39Lc 48 · large text | |
| info on mutedmin 4.5:1 | Aa5.40Lc 73 · content text | Aa5.37Lc 46 · large text | |
| info on accentmin 4.5:1 | Aa5.40Lc 73 · content text | Aa5.37Lc 46 · large text | |
| destructive on backgroundmin 4.5:1 | Aa5.00Lc 73 · content text | Aa6.02Lc 42 · non-text | auto-fixed |
| destructive on cardmin 4.5:1 | Aa5.00Lc 73 · content text | Aa5.37Lc 41 · non-text | auto-fixed |
| destructive on mutedmin 4.5:1 | Aa4.55Lc 66 · content text | Aa4.51Lc 39 · non-text | auto-fixed |
| destructive on accentmin 4.5:1 | Aa4.55Lc 66 · content text | Aa4.51Lc 39 · non-text | auto-fixed |
| primary-foreground on primary-pressedmin 4.5:1 | Aa6.70Lc 87 · body text | Aa7.83Lc 54 · large text | |
| secondary-foreground on secondary-pressedmin 4.5:1 | Aa13.96Lc 89 · body text | Aa10.01Lc 95 · body text | |
| Icons on tintsA tone’s icon on its own tint, as Alert and IconCircle draw it. | |||
| primary on primary-subtlemin 3:1 | 4.24Lc 62 · content text | 4.47Lc 38 · non-text | auto-fixed |
| success on success-subtlemin 3:1 | 4.57Lc 68 · content text | 6.54Lc 54 · large text | |
| warning on warning-subtlemin 3:1 | 4.51Lc 67 · content text | 8.97Lc 70 · content text | |
| info on info-subtlemin 3:1 | 5.17Lc 70 · content text | 5.01Lc 44 · non-text | |
| destructive on destructive-subtlemin 3:1 | 4.09Lc 59 · large text | 4.89Lc 40 · non-text | auto-fixed |
Every step, as text and under it
Text on every step: white on top, the ramp’s 950 below. AA is 4.5:1 for text, AAA 7:1; L passes for large text only (3:1). On a phone the ratio shows alone.
Typical colour vision.
3 pairs fall below ΔE 0.05. Colour alone won’t tell them apart: keep the icon or label beside it.