Hex Opacity Converter
Turn a percentage of opacity into the two-digit hex code used in CSS colors like #RRGGBBAA.
1 Fill in the boxes
2 Your answer
Your answer shows here as you type.
How to use the Hex Opacity Converter
- Type the opacity, from 0 to 100.
- Pick the color.
- Copy the 8-digit code into your CSS.
Frequently asked questions
Why does 50% show as 80?
Solid is 255, half of 255 is about 128, and 128 is 80 in hex.
How do I use the code?
Put the 8-digit code after the six-digit color in CSS, for example color: #3366FF80;
Wrote something with AI? Slop Monkey rewrites it so it sounds like you, and keeps your facts.