Skip to content

Instantly share code, notes, and snippets.

@remarkablemark
Created September 22, 2026 00:46
Show Gist options
  • Select an option

  • Save remarkablemark/a38848188d710d879e4c2c29df3f04ef to your computer and use it in GitHub Desktop.

Select an option

Save remarkablemark/a38848188d710d879e4c2c29df3f04ef to your computer and use it in GitHub Desktop.
Ren'Py hexadecimal color with alpha transparency or opacity

Ren'Py hexadecimal color with alpha transparency or opacity

Opacity Hex alpha Example
0% 00 #FFFFFF00
5% 0D #FFFFFF0D
10% 1A #FFFFFF1A
15% 26 #FFFFFF26
20% 33 #FFFFFF33
25% 40 #FFFFFF40
30% 4D #FFFFFF4D
35% 59 #FFFFFF59
40% 66 #FFFFFF66
45% 73 #FFFFFF73
50% 80 #FFFFFF80
55% 8C #FFFFFF8C
60% 99 #FFFFFF99
65% A6 #FFFFFFA6
70% B3 #FFFFFFB3
75% BF #FFFFFFBF
80% CC #FFFFFFCC
85% D9 #FFFFFFD9
90% E6 #FFFFFFE6
95% F2 #FFFFFFF2
100% FF #FFFFFFFF

For another color, replace FFFFFF with its six-digit hex color. For example, red at 30% opacity:

"#FF00004D"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment