# Opacity

> How solid a thing looks. At 0% you see right through it. At 100% it is solid.

**Field:** Design  
**Category:** Design Standards  
**Also known as:** Transparency (Design), Layer Opacity, Opacity (CSS)

## Think of it like

Frosted glass lets a bit of light through. Clear glass lets it all through, and a wall lets none.

## Definition

Opacity is how solid a thing looks, from fully see-through to fully solid. At 100%, nothing behind it shows. At 0%, it cannot be seen at all. In between, the colors behind it mix with its own. Designers use it for the dark layer behind a dialog, for disabled buttons and for soft shadows.

## Example

A dialog opens over a page. A black layer at 50% opacity dims the page, so the dialog stands out.

## Example code

```css
.backdrop {
  background: black;
  opacity: 0.5;
}
```

The dark layer behind a dialog is half see-through, so the page still shows.

## Why it matters

It lets you dim, layer and soften things without adding new colors.

## Common mistake

Fading text to show it matters less. Pale text on a pale page can fail contrast rules.

## Three principles

- **0 to 100.** From not seen at all to fully solid.
- **Mixes with behind.** The layer below shows through.
- **Watch contrast.** Faded text gets hard to read.

## Related terms

- [Alpha Channel](https://learn.benibix.com/term/design/alpha-channel)
- [Elevation](https://learn.benibix.com/term/design/elevation)
- [Modal Dialog](https://learn.benibix.com/term/design/modal-dialog)
- [Contrast Ratio](https://learn.benibix.com/term/design/contrast-ratio)
- [Dark Mode](https://learn.benibix.com/term/design/dark-mode)

## Told apart from

- [Opacity vs Alpha Channel](https://learn.benibix.com/compare/opacity-vs-alpha-channel): People think opacity and the alpha channel are the same thing, and they are not. Opacity is one setting for a whole layer, like 50% for the dark layer behind a dialog. The alpha channel is saved inside a picture. It holds its own value for each pixel. That is how a logo can have soft edges and a see-through middle.

![Five panels. UI density: the same list at scale 0, -1 and -2, with rows of 36, 32 and 28 pixels. Motion token: a token named duration-short, 150 ms with standard easing, with arrows to a menu, a dialog and a toast. Optical alignment: a play triangle in a circle at the math center, which looks too far left, and nudged right to the optical center. Pixel grid: a 1-pixel line placed off the grid smears across two pale columns, and on the grid it fills one solid column. Opacity: three blue squares over gray stripes at 100, 60 and 20 percent.](https://learn.benibix.com/diagrams/des9-ui-details.svg)

---

Source: https://learn.benibix.com/term/design/opacity
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-17
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
