Tools / Hex color with opacity
Hex color with opacity
Make any color see-through and get the exact code to paste into your CSS.
Every 10 percent
How to use it
Three quick steps.
- Pick a color and drag the opacity slider.
- Copy the 8-digit hex, rgb() or hsl() value.
- Use the table to grab other opacity levels for the same color.
Good to know
Get better results.
- The last two digits of an 8-digit hex code are the opacity: 00 is invisible, FF is solid.
- rgb(30 144 255 / 50%) and #1E90FF80 give the same result.
- The CSS opacity property fades the whole element. A transparent color only affects that color.
Common questions
What is an 8-digit hex code?
A normal hex code plus two digits at the end for opacity, like #1E90FF80 for about 50 percent.
Do browsers support 8-digit hex?
Yes. All current browsers support it in CSS.
How do I convert a percentage to hex?
Multiply the percentage by 255 and convert to hex. 50 percent is 127.5, which rounds to 80 in hex.
More tools
Keep going with a related tool.