Layout & CSS Core A2 · Formal specification Platform: Web

Opacity

Opacity says how solid an element and its children look. It can range from clear to solid.

See how it works
You might call it alphatransparency

See how it works

Original worked exampleOpacity

Another example

A drag preview uses lower opacity. The moving copy looks different while the original place stays visible.

Main parts

  1. 01Content surface
  2. 02Distinct visual treatment
  3. 03Action and readability check

Use it when

Use it for transitions, overlays, previews, or back layers when contrast stays readable.

Do not use it when

Do not lower a whole box only to fade text. Every child and blended color will change.

Name used in code

opacity: 0…1 / alpha channel

Before you ship

Check content order, shared design values, component consistency, contrast, zoom, and layout changes by screen size. Verify every theme, language, and state. If there is motion, offer an equal reduced-motion experience.

Request you can copy

Outcome: Use or define Opacity to make the visual experience clear and easy to use. User context: A drag preview uses lower opacity. The moving copy looks different while the original place stays visible. Design concept to apply: Opacity. Why it fits: Use it for transitions, overlays, previews, or back layers when contrast stays readable. Do not use it when: Do not lower a whole box only to fade text. Every child and blended color will change. Design requirements: Set the content order, shared design values, and reusable components. Define how the layout changes by screen size and state. Keep useful design choices separate from decoration. Inclusion and resilience: Check contrast, zoom, languages, themes, and reduced motion when needed. Do not use color or effects as the only way to show meaning. Acceptance criteria: The design stays clear on phones and desktops, at zoom, in every theme, and in all supported languages. Interactive states stay clear and consistent. Evidence and limits (evidence boundary): A formal document may still be a draft, release candidate, or final version. Check its status and browser or platform support. Unknowns to confirm: Brand limits, amount of content, supported themes and languages, target devices, and design-system rules.

Check this request

Review the current use of Opacity. Definition: Opacity says how solid an element and its children look. It can range from clear to solid. Release checks: Check content order, shared design values, component consistency, contrast, zoom, and layout changes by screen size. Verify every theme, language, and state. If there is motion, offer an equal reduced-motion experience. Before changing code, report the evidence you found, gaps, severity, and the smallest safe fix.

A2
How official is this term?

Formal specification

A published, versioned formal specification defines this term for the listed technical scope.

A formal document may still be a draft, release candidate, or final version. Check its status and browser or platform support.

Scope
CSS color
Document status
draft
Checked on
2026-07-30

Evidence sources & scope

Authority source + Term reference · W3C CSS Working Group · draft CSS Color Module Level 4 — Transparency: the opacity property Transparency: the opacity property Scope: CSS color and opacity; direct scope: Transparency: the opacity property Role here: Direct term reference Source covers: canonical name, definition, semantics, implementation Authority source · W3C CSS Working Group · draft CSS Color Module Level 4 Scope: CSS color and opacity Role here: Authority within stated scope Source covers: canonical name, definition, semantics, implementation

Copy it yourself

The browser could not copy this. Select the request below and copy it yourself.