Studio: Accessibility

Accessibility

Contrast

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.

Contrast of every pairing the build checks, light and dark: WCAG ratio, pass or fail, and APCA Lc; your edits to check first
PairingLightDarkStatus
Labels on fillsA fill and its own -foreground: buttons, badges, chips.
primary-foreground on primarymin 4.5:1
5.17Lc 80 · body text
6.05Lc 44 · non-text
auto-fixed
secondary-foreground on secondarymin 4.5:1
16.12Lc 98 · body text
14.27Lc 101 · body text
destructive-foreground on destructivemin 4.5:1
5.00Lc 78 · body text
6.02Lc 45 · non-text
auto-fixed
success-foreground on successmin 4.5:1
5.02Lc 80 · body text
8.73Lc 59 · large text
warning-foreground on warningmin 4.5:1
5.02Lc 79 · body text
11.92Lc 75 · content text
info-foreground on infomin 4.5:1
5.93Lc 84 · body text
7.18Lc 51 · large text
accent-foreground on accentmin 4.5:1
16.12Lc 98 · body text
14.27Lc 101 · body text
card-foreground on cardmin 4.5:1
19.90Lc 106 · body text
16.97Lc 103 · body text
popover-foreground on popovermin 4.5:1
19.90Lc 106 · body text
16.97Lc 103 · body text
sidebar-foreground on sidebarmin 4.5:1
19.06Lc 103 · body text
16.97Lc 103 · body text
sidebar-primary-foreground on sidebar-primarymin 4.5:1
5.17Lc 80 · body text
6.05Lc 44 · non-text
auto-fixed
sidebar-accent-foreground on sidebar-accentmin 4.5:1
16.12Lc 98 · body text
14.27Lc 101 · body text
Text on surfacesBody and muted text on the page, cards and muted panels.
muted-foreground on mutedmin 4.5:1
7.03Lc 80 · body text
5.81Lc 48 · large text
muted-foreground on backgroundmin 4.5:1
7.73Lc 87 · body text
7.76Lc 52 · large text
foreground on backgroundmin 4.5:1
19.90Lc 106 · body text
19.06Lc 104 · body text
muted-foreground on cardmin 4.5:1
7.73Lc 87 · body text
6.91Lc 51 · large text
foreground on cardmin 4.5:1
19.90Lc 106 · body text
16.97Lc 103 · body text
foreground on mutedmin 4.5:1
18.10Lc 99 · body text
14.27Lc 101 · body text
foreground on primary-subtlemin 4.5:1
16.31Lc 93 · body text
14.08Lc 101 · body text
muted-foreground on primary-subtlemin 4.5:1
6.34Lc 74 · content text
5.73Lc 48 · large text
foreground on success-subtlemin 4.5:1
18.12Lc 99 · body text
14.28Lc 101 · body text
muted-foreground on success-subtlemin 4.5:1
7.04Lc 80 · body text
5.82Lc 48 · large text
foreground on warning-subtlemin 4.5:1
17.87Lc 99 · body text
14.35Lc 101 · body text
muted-foreground on warning-subtlemin 4.5:1
6.94Lc 80 · body text
5.84Lc 48 · large text
foreground on info-subtlemin 4.5:1
17.34Lc 97 · body text
13.30Lc 100 · body text
muted-foreground on info-subtlemin 4.5:1
6.74Lc 78 · body text
5.42Lc 47 · large text
foreground on destructive-subtlemin 4.5:1
16.29Lc 92 · body text
15.47Lc 102 · body text
muted-foreground on destructive-subtlemin 4.5:1
6.33Lc 73 · content text
6.30Lc 49 · large text
foreground on muted-subtlemin 4.5:1
19.06Lc 103 · body text
16.97Lc 103 · body text
muted-foreground on muted-subtlemin 4.5:1
7.41Lc 84 · body text
6.91Lc 51 · large text
Tones as textA tone used as ink: links, status text, coloured icons.
primary on backgroundmin 4.5:1
5.17Lc 75 · content text
6.05Lc 42 · non-text
auto-fixed
primary on cardmin 4.5:1
5.17Lc 75 · content text
5.38Lc 41 · non-text
auto-fixed
primary on mutedmin 4.5:1
4.70Lc 68 · content text
4.53Lc 39 · non-text
auto-fixed
primary on accentmin 4.5:1
4.70Lc 68 · content text
4.53Lc 39 · non-text
auto-fixed
success on backgroundmin 4.5:1
5.02Lc 74 · content text
8.73Lc 58 · large text
success on cardmin 4.5:1
5.02Lc 74 · content text
7.78Lc 57 · large text
success on mutedmin 4.5:1
4.56Lc 68 · content text
6.54Lc 54 · large text
success on accentmin 4.5:1
4.56Lc 68 · content text
6.54Lc 54 · large text
warning on backgroundmin 4.5:1
5.02Lc 74 · content text
11.92Lc 74 · content text
warning on cardmin 4.5:1
5.02Lc 74 · content text
10.61Lc 73 · content text
warning on mutedmin 4.5:1
4.57Lc 68 · content text
8.92Lc 70 · content text
warning on accentmin 4.5:1
4.57Lc 68 · content text
8.92Lc 70 · content text
info on backgroundmin 4.5:1
5.93Lc 79 · body text
7.18Lc 49 · large text
info on cardmin 4.5:1
5.93Lc 79 · body text
6.39Lc 48 · large text
info on mutedmin 4.5:1
5.40Lc 73 · content text
5.37Lc 46 · large text
info on accentmin 4.5:1
5.40Lc 73 · content text
5.37Lc 46 · large text
destructive on backgroundmin 4.5:1
5.00Lc 73 · content text
6.02Lc 42 · non-text
auto-fixed
destructive on cardmin 4.5:1
5.00Lc 73 · content text
5.37Lc 41 · non-text
auto-fixed
destructive on mutedmin 4.5:1
4.55Lc 66 · content text
4.51Lc 39 · non-text
auto-fixed
destructive on accentmin 4.5:1
4.55Lc 66 · content text
4.51Lc 39 · non-text
auto-fixed
primary-foreground on primary-pressedmin 4.5:1
6.70Lc 87 · body text
7.83Lc 54 · large text
secondary-foreground on secondary-pressedmin 4.5:1
13.96Lc 89 · body text
10.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
6 generated values were auto-fixed to pass
  • destructivelight: #dc2626 → #d92223
  • primarydark: #3b82f6 → #448bff
  • destructivedark: #ef4444 → #fb504e
  • ringdark: #3b82f6 → #448bff
  • sidebar-primarydark: #3b82f6 → #448bff
  • sidebar-ringdark: #3b82f6 → #448bff

Ramps

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.

Brand

  • 50: white text 1.1:1, fails; 950 text 14:1, AAA
  • 100: white text 1.2:1, fails; 950 text 12:1, AAA
  • 200: white text 1.4:1, fails; 950 text 10:1, AAA
  • 300: white text 1.8:1, fails; 950 text 8.1:1, AAA
  • 400: white text 2.5:1, fails; 950 text 5.8:1, AA
  • 500: white text 3.7:1, AA large; 950 text 4.0:1, AA large
  • 600: white text 5.2:1, AA; 950 text 2.8:1, fails
  • 700: white text 6.7:1, AA; 950 text 2.2:1, fails
  • 800: white text 8.7:1, AAA; 950 text 1.7:1, fails
  • 900: white text 10:1, AAA; 950 text 1.4:1, fails
  • 950: white text 15:1, AAA; 950 text 1.0:1, fails

Neutral

  • 50: white text 1.0:1, fails; 950 text 19:1, AAA
  • 100: white text 1.1:1, fails; 950 text 18:1, AAA
  • 200: white text 1.3:1, fails; 950 text 16:1, AAA
  • 300: white text 1.5:1, fails; 950 text 13:1, AAA
  • 400: white text 2.6:1, fails; 950 text 7.8:1, AAA
  • 500: white text 4.8:1, AA; 950 text 4.1:1, AA large
  • 600: white text 7.7:1, AAA; 950 text 2.6:1, fails
  • 700: white text 10:1, AAA; 950 text 1.9:1, fails
  • 800: white text 15:1, AAA; 950 text 1.3:1, fails
  • 900: white text 18:1, AAA; 950 text 1.1:1, fails
  • 950: white text 20:1, AAA; 950 text 1.0:1, fails

Error

  • 50: white text 1.1:1, fails; 950 text 15:1, AAA
  • 100: white text 1.2:1, fails; 950 text 13:1, AAA
  • 200: white text 1.4:1, fails; 950 text 11:1, AAA
  • 300: white text 1.9:1, fails; 950 text 8.5:1, AAA
  • 400: white text 2.8:1, fails; 950 text 5.8:1, AA
  • 500: white text 3.8:1, AA large; 950 text 4.3:1, AA large
  • 600: white text 4.8:1, AA; 950 text 3.3:1, AA large
  • 700: white text 6.5:1, AA; 950 text 2.5:1, fails
  • 800: white text 8.3:1, AAA; 950 text 1.9:1, fails
  • 900: white text 10:1, AAA; 950 text 1.6:1, fails
  • 950: white text 16:1, AAA; 950 text 1.0:1, fails

Success

  • 50: white text 1.0:1, fails; 950 text 14:1, AAA
  • 100: white text 1.1:1, fails; 950 text 14:1, AAA
  • 200: white text 1.2:1, fails; 950 text 12:1, AAA
  • 300: white text 1.4:1, fails; 950 text 11:1, AAA
  • 400: white text 1.7:1, fails; 950 text 8.6:1, AAA
  • 500: white text 2.3:1, fails; 950 text 6.5:1, AA
  • 600: white text 3.3:1, AA large; 950 text 4.5:1, AA
  • 700: white text 5.0:1, AA; 950 text 3.0:1, fails
  • 800: white text 7.1:1, AAA; 950 text 2.1:1, fails
  • 900: white text 9.1:1, AAA; 950 text 1.6:1, fails
  • 950: white text 15:1, AAA; 950 text 1.0:1, fails

Warning

  • 50: white text 1.0:1, fails; 950 text 14:1, AAA
  • 100: white text 1.1:1, fails; 950 text 13:1, AAA
  • 200: white text 1.2:1, fails; 950 text 12:1, AAA
  • 300: white text 1.4:1, fails; 950 text 10:1, AAA
  • 400: white text 1.7:1, fails; 950 text 9.0:1, AAA
  • 500: white text 2.1:1, fails; 950 text 7.0:1, AA
  • 600: white text 3.2:1, AA large; 950 text 4.7:1, AA
  • 700: white text 5.0:1, AA; 950 text 3.0:1, fails
  • 800: white text 7.1:1, AAA; 950 text 2.1:1, fails
  • 900: white text 9.1:1, AAA; 950 text 1.7:1, fails
  • 950: white text 15:1, AAA; 950 text 1.0:1, fails

Info

  • 50: white text 1.1:1, fails; 950 text 13:1, AAA
  • 100: white text 1.1:1, fails; 950 text 12:1, AAA
  • 200: white text 1.3:1, fails; 950 text 10:1, AAA
  • 300: white text 1.7:1, fails; 950 text 8.3:1, AAA
  • 400: white text 2.1:1, fails; 950 text 6.5:1, AA
  • 500: white text 2.8:1, fails; 950 text 5.0:1, AA
  • 600: white text 4.1:1, AA large; 950 text 3.4:1, AA large
  • 700: white text 5.9:1, AA; 950 text 2.3:1, fails
  • 800: white text 7.6:1, AAA; 950 text 1.8:1, fails
  • 900: white text 9.5:1, AAA; 950 text 1.5:1, fails
  • 950: white text 14:1, AAA; 950 text 1.0:1, fails

Colour vision

Typical colour vision.

success#15803d
warning#b45309
destructive#d92223
info#0369a1
chart-1chart-2chart-3chart-4chart-5

3 pairs fall below ΔE 0.05. Colour alone won’t tell them apart: keep the icon or label beside it.

  • warning / destructiveΔE 0.020(light)
  • info / successΔE 0.035(light and dark)
  • success / destructiveΔE 0.043(dark)