Guides
Accessible Glass UI: Contrast, Focus and User Preferences
Glass interfaces can be beautiful and accessible. Practical rules for contrast, focus styles, motion and transparency preferences.

In short: Accessible glass UI keeps text at a contrast of at least 4.5 to 1 against the busiest background, keeps a visible focus ring, and respects reduced motion, reduced transparency, increased contrast and forced colours with solid fallbacks.
Translucent surfaces put the background behind your text, and backgrounds change. That makes glass one of the easier styles to get wrong for accessibility — and one of the easier ones to fix once you know where to look.
1. Test contrast against the worst case
WCAG asks for a contrast ratio of at least 4.5:1 for normal text and 3:1 for large text and essential UI boundaries. With glass, the colour behind the text isn’t fixed, so test against the busiest, least favourable part of the background the component will ever sit on — not the average.
Ways to raise contrast without losing the material:
- increase tint strength so the glass carries more of its own colour,
- use a dark tint with light text over bright imagery, or the opposite,
- add a subtle text shadow to separate letters from detail behind them,
- increase blur behind text-heavy surfaces to calm the background.
2. Keep focus visible
Glass buttons often lose their focus ring because designers remove outlines for a cleaner look. Don’t. A clear :focus-visible style costs nothing for mouse users and is essential for keyboard users:
.glass-button:focus-visible {
outline: 2px solid rgb(255 255 255 / .75);
outline-offset: 3px;
}
Also apply your hover styling to :focus-visible, so keyboard users get the same feedback as mouse users.
3. Respect reduced motion
Lift, scale and light sweeps are delightful for most people and uncomfortable for some. Honour the system setting:
@media (prefers-reduced-motion: reduce) {
.glass-button,
.glass-button::after { transition: none; }
.glass-button::after { display: none; }
}
4. Respect reduced transparency
Some users ask their operating system to reduce transparency because translucent layers make content harder to read. Where browsers support the prefers-reduced-transparency media query, replace the glass with a solid surface:
@media (prefers-reduced-transparency: reduce) {
.glass-button {
background-color: rgb(22 24 30 / .92);
backdrop-filter: none;
}
}
5. Provide a solid fallback
Very old browsers don’t support backdrop-filter. Without a fallback, a 10% white tint becomes nearly invisible:
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
.glass-button { background-color: rgb(22 24 30 / .92); }
}
6. Use real semantics
Glass is a visual treatment, not a reason to use div for everything. Use button for actions, a for navigation, nav with aria-current="page" for the active item, and real label elements for inputs. Icon-only buttons need an aria-label.
Frequently asked questions
Is glassmorphism accessible?
It can be. Keep text at 4.5:1 contrast over the busiest background, keep focus visible, and provide solid fallbacks for reduced transparency, increased contrast and forced colours.
What contrast ratio does text on glass need?
WCAG asks for at least 4.5:1 for normal text and 3:1 for large text and essential UI boundaries. Measure against the least favourable part of the background, not the average.
What is prefers-reduced-transparency?
prefers-reduced-transparency is a CSS media query that matches when the user asks the operating system for less transparency. Use it to swap glass for solid surfaces.
How do I make glass work in Windows High Contrast mode?
Use @media (forced-colors: active) to add a real border such as 1px solid CanvasText, because forced colours remove backgrounds, shadows and other decoration.
Should glass buttons have a focus outline?
Yes. Keyboard users need a visible focus indicator (WCAG 2.4.7). An outline with an offset, such as outline: 2px solid #fff; outline-offset: 3px, looks deliberate on glass.
How did Apple make Liquid Glass more readable?
Apple added opacity during the beta, a Tinted option in iOS 26.1, and a transparency slider, darker edges and stronger diffusion in iOS 27. Users can also turn on Reduce Transparency. See how to reduce Liquid Glass.
Built in
Every component exported from the UIGlass builder includes focus styles, semantic markup, reduced-motion and reduced-transparency handling, and a solid fallback. Contrast still depends on your background — so test it where the component will live.


