0
0
Figmabi_tool~10 mins

Opacity control in Figma - Cell-by-Cell Formula Trace

Choose your learning style9 modes available
Sample Data

This data shows different shapes with their base colors and opacity percentages. The resulting color is the base color combined with the opacity as an RGBA value.

CellValue
A1Object
B1Base Color
C1Opacity (%)
D1Resulting Color
A2Circle
B2#FF0000
C250
D2rgba(255,0,0,0.5)
A3Square
B3#0000FF
C375
D3rgba(0,0,255,0.75)
A4Triangle
B4#00FF00
C430
D4rgba(0,255,0,0.3)
Formula Trace
Resulting Color = rgba(R, G, B, Opacity/100)
Step 1: Convert Hex color #FF0000 to RGB (255, 0, 0)
Step 2: Divide Opacity 50 by 100
Step 3: Combine RGB and opacity to form rgba(255, 0, 0, 0.5)
Cell Reference Map
    A       B         C         D
1 |Object |Base Color|Opacity %|Resulting Color
2 |Circle |#FF0000  |50       |rgba(255,0,0,0.5)
3 |Square |#0000FF  |75       |rgba(0,0,255,0.75)
4 |Triangle|#00FF00 |30       |rgba(0,255,0,0.3)
The formula uses the Base Color in column B and Opacity in column C to calculate the Resulting Color in column D.
Result
    A       B         C         D
1 |Object |Base Color|Opacity %|Resulting Color
2 |Circle |#FF0000  |50       |rgba(255,0,0,0.5)
3 |Square |#0000FF  |75       |rgba(0,0,255,0.75)
4 |Triangle|#00FF00 |30       |rgba(0,255,0,0.3)
The resulting color column shows the base color combined with the opacity as an RGBA color string, which controls transparency in design.
Sheet Trace Quiz - 3 Questions
Test your understanding
What does the opacity value 50 represent in the formula?
A50% transparency or 0.5 alpha
B50% brightness
C50% saturation
D50% hue
Key Result
Opacity control converts percentage opacity to decimal alpha and combines with RGB color to form RGBA color.