Skip to main content
Inspiring
Mar 29, 2022 12:22 PM UTC
Answered

What does this hex code mean? #0A0A0A3D

So It was brought to my notice that one of the xd links was giving out a weird hex code (#0A0A0A3D) for a shadow element that I had added and I can't figure out what it means. Attaching the screenshots below.

 Does anyone have any idea about it?? Also, the element was just a rectangle with nothing but a fill and shadow.

This topic is closed to new replies. Start a new post to keep the conversation going.
AkinGn
AkinGnCorrect answer
Community Expert
Mar 29, 2022 2:42 PM UTC

I think it's because 3D/FF = 24/100 😉 

 

Check how both divs have the same background color with opacity or extra two decimal properties in the bg color:

https://codepen.io/Gundogan/pen/QWagmYq

5 replies

Legend
Mar 29, 2022 1:46 PM UTC

are you using windows? seems different about what i have with macOS

 

anyways this a hex code+appearance for CSS for HTML

Translate
Inspiring
Mar 30, 2022 4:16 AM UTC

It was the same in a macOS for me. Anyways its sorted now. 😄

Translate
AkinGn
Community Expert
Community Expert
Mar 29, 2022 12:27 PM UTC

Hi @Vaishnav23801338b3kj, I think the last two digits of that code is for transparency/opacity as far as I remember, here's a link explains it https://www.delftstack.com/howto/html/html-transparent-hex-code/

Translate
Inspiring
Mar 29, 2022 12:39 PM UTC

Okay, that makes sense but 3D doesn't. Like 3D in hex is basically 61 but the opacity value I've given is 24, So it should give 18 right? 

Translate
AkinGn
Community Expert
AkinGnCommunity ExpertCorrect answer
Community Expert
Mar 29, 2022 2:42 PM UTC

I think it's because 3D/FF = 24/100 😉 

 

Check how both divs have the same background color with opacity or extra two decimal properties in the bg color:

https://codepen.io/Gundogan/pen/QWagmYq

Translate