Opacity
Controls element transparency to express visual hierarchy in overlays and state changes.
Opacity Scale
A complete opacity scale from 0% to 100%
0%
5%
10%
15%
20%
25%
30%
35%
40%
45%
50%
55%
60%
65%
70%
75%
80%
85%
90%
95%
100%
Interactive Demo
Adjust the slider to see the opacity effect in real time
50%
0%50%100%
Opacity vs Color Alpha
opacityproperty vs. color alpha value — what's the difference?
opacity: 0.5Parent element (50%)
Child also at 50%
✗ Affects child elements too
color-mix()Parent element (50%)
Child remains at 100%
✓ Background only is transparent
Text Readability
How opacity affects text readability
100%
A design system delivers consistent user experiences.
Readable80%
A design system delivers consistent user experiences.
Readable60%
A design system delivers consistent user experiences.
Readable40%
A design system delivers consistent user experiences.
Not recommended20%
A design system delivers consistent user experiences.
Not recommendedFor accessibility, keep body text at 60% or above opacity.
Animation Examples
Fade in / fade out effects using opacity
Box
transition-opacity duration-slow