All hex-colors in three-digit or six-digit hex are pure colors, so #000000 will be black in all implementations that follow the official specification. Eight-digit hex means that the last 2 digits represent the alpha value.. so #ffffff00 works. It translates to 255,255,255,0 (white with an alpha of 0, which makes it transparent). This works with every color.. as long as it's eight-digit and the last 2 digits are 00, it will always be transparent. Answer from toi80QC on reddit.com
๐ŸŒ
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
๐ŸŒ
GitHub
gist.github.com โ€บ lopspower โ€บ 03fb1cc0ac9f32ef38f4
Hexadecimal color code for transparency ยท GitHub
Hexadecimal color code for transparency ยท Raw ยท README.md ยท For example, you want to set 40% alpha transparence to #000000 (black color), you need to add 66 like this #66000000.
Discussions

hex - What is the hexadecimal code for a transparent color? - Stack Overflow
I want to set the color as transparent. In RGB, 255 0 255 with alpha 5 may work as transparent, but how can I get it in hexadecimal? What is the hexadecimal code for a transparent color? More on stackoverflow.com
๐ŸŒ stackoverflow.com
colors - Transparent ARGB hex value - Stack Overflow
The colors in this table is all not transparent. I guess the value for the A is set to FF. What is the code for transparency? For example this color FFF0F8FF (AliceBlue), to a transparent code s... More on stackoverflow.com
๐ŸŒ stackoverflow.com
css - Hexadecimal colors: What is the numeric representation for "transparent"? - Stack Overflow
There's a relatively new way of doing transparency and it's called HEXA (HEX + Alpha). It takes in eight digits instead of six. The last pair is Alpha. So the pattern of pairs is #RRGGBBAA. Having four digits also works: #RGBA ยท I am not sure about its browser support for now, but you can check the draft documentation for more information. The syntax of a More on stackoverflow.com
๐ŸŒ stackoverflow.com
Is there a hex code for transparent bg color?
hello. Is there a hex code for transparent bg color? More on community.appinventor.mit.edu
๐ŸŒ community.appinventor.mit.edu
0
1
July 4, 2022
๐ŸŒ
Color Hex
color-hex.com โ€บ color-palette โ€บ 1014517
Transparent Color Palette
Transparent color palette created by 2505194 that consists #000000,#444444,#888888,#cccccc,#ffffff colors.
๐ŸŒ
The Flerlage Twins
flerlagetwins.com โ€บ 2021 โ€บ 10 โ€บ introducing-transparent-color-hex-code.html
Introducing the Transparent Color Hex Code in Tableau - The Flerlage Twins: Analytics, Data Visualization, and Tableau
You can actually apply a hex code color that is transparent. The hex code for transparent white (not that the color matters when it is fully transparent) is two zeros followed by white's hex code of FFFFFF or 00FFFFFF.
Find elsewhere
๐ŸŒ
R-project
colorspace.r-forge.r-project.org โ€บ reference โ€บ adjust_transparency.html
Adjust or Extract Transparency of Colors โ€” adjust_transparency โ€ข colorspace
The adjust_transparency function can be used to adjust the alpha transparency of a set of colors. It always returns a hex color specification.
๐ŸŒ
DigitalOcean
digitalocean.com โ€บ community โ€บ tutorials โ€บ css-hex-code-colors-alpha-values
How To Use CSS Hex Code Colors with Alpha Values | DigitalOcean
April 12, 2021 - Next, learn how to use alpha values with CSS hex codes. Using an alpha value to update a colorโ€™s transparency will change the hex code format from #RRGGBB to #RRGGBBAA (where alpha is A).
๐ŸŒ
MDN Web Docs
developer.mozilla.org โ€บ en-US โ€บ docs โ€บ Web โ€บ CSS โ€บ Reference โ€บ Values โ€บ hex-color
<hex-color> - CSS | MDN
0, or 00, represents a fully transparent color, and f, or ff, a fully opaque one. Note: The syntax is case-insensitive: #00ff00 is the same as #00FF00. This example includes four hot pink squares, with fully opaque or semi-transparent backgrounds created using four different-length case-insensitive ...
๐ŸŒ
OpenReplay
openreplay.com โ€บ tools โ€บ rgba-to-hex
RGBA to HEX Converter
Convert RGBA color values to hexadecimal format with alpha channel support. This tool helps web developers and designers work with colors that include transparency.
๐ŸŒ
W3Schools
w3schools.com โ€บ css โ€บ css3_colors.asp
CSS Colors
CSS supports 140+ color names, HEX values, RGB values, RGBA values, HSL values, HSLA values, and opacity. RGBA color values are an extension of RGB colors with an alpha channel - which specifies the opacity for a color. ... The alpha parameter is a number between 0.0 (fully transparent) and 1.0 ...
๐ŸŒ
Ben Frain
benfrain.com โ€บ easily-add-transparency-to-any-hex-color-with-4-and-8-digit-hex
Easily add transparency to any HEX color with 4 and 8 digit HEX โ€“ Ben Frain
June 16, 2021 - Now, with that being the case, suppose you have an orange colour, which you could write in 3 digit Hex as #f90, which, would get expanded by the machine to be #ff9900, you could write that with 50% transparency as #f908, or #ff990088 if you want it in the 8-digit form.
Top answer
1 of 8
54

HEXA - #RRGGBBAA

There's a relatively new way of doing transparency and it's called HEXA (HEX + Alpha). It takes in eight digits instead of six. The last pair is Alpha. So the pattern of pairs is #RRGGBBAA. Having four digits also works: #RGBA

I am not sure about its browser support for now, but you can check the draft documentation for more information.

ยง 4.2. The RGB hexadecimal notations: #RRGGBB

The syntax of a <hex-color> is a <hash-token> token whose value consists of 3, 4, 6, or 8 hexadecimal digits. In other words, a hex color is written as a hash character, "#", followed by some number of digits 0-9 or letters a-f (the case of the letters doesnโ€™t matter - #00ff00 is identical to #00FF00).

8 digits

The first 6 digits are interpreted identically to the 6-digit notation. The last pair of digits, interpreted as a hexadecimal number, specifies the alpha channel of the color, where 00 represents a fully transparent color and ff represent a fully opaque color.

Example 3
In other words, #0000ffcc represents the same color as rgba(0, 0, 100%, 80%) (a slightly-transparent blue).

4 digits

This is a shorter variant of the 8-digit notation, "expanded" in the same way as the 3-digit notation is. The first digit, interpreted as a hexadecimal number, specifies the red channel of the color, where 0 represents the minimum value and f represents the maximum. The next three digits represent the green, blue, and alpha channels, respectively.

For the most part, Chrome and Firefox have started supporting this:

2 of 8
47

Transparency is a property outside the color itself, and it's also known as alpha component. You can't code transparency as pure RGB (which stands for red-green-blue channels), but you can use the RGBA notation, in which you define the color + alpha channel together:

color: rgba(255, 0, 0, 0.5); /* red at 50% opacity */

If you want "transparent", just set the last number to 0, regardless of the color. All of the following result in "transparent" even though the color part is set to 100% red, green and blue respectively:

color: rgba(255, 0, 0, 0); /* transparent */
color: rgba(0, 255, 0, 0); /* transparent */
color: rgba(0, 0, 255, 0); /* transparent */

There's also the HEXA notation (or RRGGBBAA) now supported on all major browsers, which is pretty much the same as RGBA but using hexadecimal notation instead of decimal:

color: #FF000080; /* red at 50% opacity */

Additionally, if you just want a transparent background, the simplest way to do it is:

background: transparent;

You can also play with opacity, although this might be a tad too much and have unwanted side effects in your case:

.half {
  opacity: 0.5;
  filter: alpha(opacity=50); /* needed to support IE, my sympathies if that's the case */
}
๐ŸŒ
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โ€ฆ
๐ŸŒ
Android Explained
androidexplained.github.io โ€บ android โ€บ ui โ€บ 2020 โ€บ 10 โ€บ 12 โ€บ hex-color-code-transparency.html
Hexadecimal color code for transparency | Android Explained
October 12, 2020 - In this post weโ€™ll cover how the color transparency works on android. On android the color can be declared in the following format #AARRGGBB ยท AA - is the bit thatโ€™s of most interest to us in this article, it stands for alpha channel ยท RR GG BB - red, green & blue channels respectively ยท It is also worth noting that each channel is represented as a hexadecimal number.
๐ŸŒ
Wikipedia
en.wikipedia.org โ€บ wiki โ€บ Web_colors
Web colors - Wikipedia
2 weeks ago - Colors outside the sRGB gamut can be specified in Cascading Style Sheets by making one or more of the red, green and blue components negative or greater than 100%, so the color space is theoretically an unbounded extrapolation of sRGB similar to scRGB. Specifying a non-sRGB color this way requires the RGB() function call. It is impossible with the hexadecimal syntax (and thus impossible in legacy HTML documents that do not use CSS).
๐ŸŒ
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.