🌐
GitHub
gist.github.com β€Ί lopspower β€Ί 03fb1cc0ac9f32ef38f4
Hexadecimal color code for transparency Β· GitHub
function hexadecimal(color: string) { return (percentage: number): string => { const decimal = `0${Math.round(255 * (percentage / 100)).toString(16)}`.slice(-2).toUpperCase(); return color + decimal; }; }
🌐
CSS Generator
cssgenerator.org β€Ί rgba-and-hex-color-generator.html
RGBA and Hex Color Converter: Hex to RGBA and RGBA to Hex
A RGBA and Hex Color CSS Generator tool to quickly generate RGBA and Hex Color CSS declarations.
People also ask

Why use RGBA instead of HEX for transparency?
HEX does not support transparency. RGBA includes an alpha channel, allowing precise adjustment of opacity levels.
🌐
hexcalculator.org
hexcalculator.org β€Ί color-opacity
Hex Color Opacity Calculator
What does opacity mean in digital color?
Opacity determines how transparent a color is, ranging from fully transparent (0%) to fully opaque (100%).
🌐
hexcalculator.org
hexcalculator.org β€Ί color-opacity
Hex Color Opacity Calculator
Can I enter opacity values above 100?
No, valid opacity ranges from 0% to 100%. The tool prevents invalid input to ensure accurate RGBA output.
🌐
hexcalculator.org
hexcalculator.org β€Ί color-opacity
Hex Color Opacity Calculator
🌐
OpenReplay
openreplay.com β€Ί tools β€Ί rgba-to-hex
RGBA to HEX Converter
This tool helps web developers and designers work with colors that include transparency. ... OpenReplay is built by the community. Curious how it works?Explore the code ... RGBA colors are converted to 8-digit hexadecimal format where the last two digits represent the alpha channel.
🌐
SimpleCSS
simplecss.eu β€Ί rgbatohex.html
RGBA to HEX Converter - Simple CSS Media Query Generator
When you want to make a color fully opaque, fully transparent or anywhere in between, you can choose to use RGBA or HEX. If you choose to use HEX then you will be changing the opacity property for an entire element, whereas if you use RGBA then you can set the opacity value for a single declaration.
🌐
FFFuel
fffuel.co β€Ί cccolor
cccolor: HEX, RGB & HSL color picker for HTML & CSS | fffuel
In total, these notations give access to 16,777,216 colors. TL;DR β†’ The RGB color notation represents each color channel (red, green and blue) with a value between 0 and 255. The notation looks like this: rgb(44, 233, 77) and opacity can also be specified using RGBA: rgba(44, 233, 77, .25).
🌐
HTML Color Codes
hexcolortool.com
HTML Color Codes - What's your color
HTML color codes and color palettes. Lighten and darken to find the perfect color. Save palletes to see what works together. Generate CSS and HTML codes.
🌐
Hexcalculator
hexcalculator.org β€Ί color-opacity
Hex Color Opacity Calculator
December 4, 2025 - Adjust HEX colors with custom opacity levels. Our Hex Color Opacity Calculator creates transparent overlays for UI, design, and CSS work.
🌐
Devoth
hex2rgba.devoth.com
HEX 2 RGBA Color Calculator | by @Devoth
There are many great HEX to RGB color converters out there, but usually they give you result in three separate fields (R, G & B), which is annoying because 99% of times when I need an RGB value from HEX, I need to paste it to some CSS rule. So why copy/paste from three fields, when you can have it in one field - nicely baked for CSS inclusion. ... Added an input field for the opacity, for people who don't like to work with sliders.
Find elsewhere
🌐
W3Schools
w3schools.com β€Ί cssref β€Ί tryit.php
HEX colors with transparency
The W3Schools online code editor allows you to edit code and view the result in your browser
🌐
RGBA Color Picker
rgbacolorpicker.com
RGBA Color Picker
To pick RGB/RGBA/Hex/HSL colors from an image (without uploading it to any server), check out our Image Color Picker.
🌐
Make Tints and Shades
maketintsandshades.com
Tint and Shade Generator
Easily make tints and shades that match the output of Chrome DevTools, Sass, Less, and PostCSS.
🌐
Chris Coyier
chriscoyier.net β€Ί 2023 β€Ί 05 β€Ί 12 β€Ί add-opacity-to-an-existing-color
Add Opacity to an Existing Color – Chris Coyier
May 12, 2023 - Say your brand color is the orange #f06d06. Now you need that color but with some opacity on it. One option is the 8-digit hex code. I find it hard to know which additional two characters are needed, but it's possible. Hex CodeNotes#f06d06Original Orange#f06d0640Orange @ 25% opacity#f06d0680Orange @ 50% opacity#f06d06BFOrange @ 75% opacity Test Pen…
🌐
CSS Portal
cssportal.com β€Ί css3-rgba-generator
CSS RGBA Generator - CSS Portal
This handy tool helps you visualize colors and opacity using the CSS3 RGBA format. It automatically generates the code you need for both the background-color and color properties, making it easy to apply the results to your projects.
🌐
RGBA Color Picker
rgbacolorpicker.com β€Ί hex-to-rgba
Hex to RGBA
Find 4/5/6/7/etc. Letter Words With Specific Letters ... Tip: You can enter 8 character Hex code (like #11223344) for transparent RGBA colors.
🌐
Utilitytoolshub
utilitytoolshub.com β€Ί color-opacity
Color Opacity Tool - Generate Colors with Opacity
Select a color and adjust opacity to generate hex, RGB, or HSL color codes with transparency.
🌐
HTML Code Generator
html-code-generator.com β€Ί css β€Ί rgba-color-generator
CSS RGBA Transparency Color Generator
CSS RGBA Color Generator, Transparent Color Generator, Transparency Text colors background RGBA color
Top answer
1 of 8
4111

Here's a correct table of percentages to hex values for opacity. E.g. for 50% white you'd use #80FFFFFF. To think in terms of transparency instead, flip the order of the percentages (more opaque = less transparent).

% Hex
100% FF
95% F2
90% E6
85% D9
80% CC
75% BF
70% B3
65% A6
60% 99
55% 8C
50% 80
45% 73
40% 66
35% 59
30% 4D
25% 40
20% 33
15% 26
10% 1A
5% 0D
0% 00

(source question)

2 of 8
185

Short answer: full table of percentages

You can see the full table of percentages to hex values and run the code in this playground in

  • Golang https://play.golang.org/p/l1JaPYFzDkI .
  • Kotlin https://pl.kotl.in/o9BnFYhRn

Ok the table tells the results not how to find the results. The next parts explain how you can calculate yourself.

Short explanation in pseudocode

Percentage to hex values

  1. decimal = percentage * 255 / 100 . ex : decimal = 50*255/100 = 127.5
  2. convert decimal to hexadecimal value . ex: 127.5 in decimal = 7*16Λ†1 + 15 = 7F in hexadecimal

Hex values to percentage

  1. convert the hexaxdecimal value to decimal. ex: D6 = 13*16Λ†1 + 6 = 214
  2. percentage = (value in decimal ) * 100 / 255. ex : 214 *100/255 = 84%

More infos for the conversion decimal <=> hexadecimal

Long answer: how to calculate in your head

The problem can be solved generically by a cross multiplication.

We have a percentage (ranging from 0 to 100 ) and another number (ranging from 0 to 255) then converted to hexadecimal.

  • 100 <==> 255 (FF in hexadecimal)
  • 0 <==> 0 (00 in hexadecimal)

For 1%

  • 1 * 255 / 100 = 2,5
  • 2,5 in hexa is 2 if you round it down.

For 2%

  • 2 * 255 / 100 = 5
  • 5 in hexa is 5 .

The table in the best answer gives the percentage by step of 5%.

How to calculate the numbers between in your head ? Due to the 2.5 increment, add 2 to the first and 3 to the next

  • 95% β€” F2 // start
  • 96% β€” F4 // add 2 to F2
  • 97% β€” F7 // add 3 . Or F2 + 5 = F7
  • 98% β€” F9 // add 2
  • 99% β€” FC // add 3. 9 + 3 = 12 in hexa : C
  • 100% β€” FF // add 2

I prefer to teach how to find the solution rather than showing an answer table you don't know where the results come from.

Give a man a fish and you feed him for a day; teach a man to fish and you feed him for a lifetime