+ 1

sololearn says html allows at most 6 hex digits. I check from some image editor , try to use some favorite colors. But the codes are 7 hex digits. Are they good in html?

eg. a strawberry red is FFF4124A. a navy blue is FF5375F4.

6th Jun 2016, 4:27 AM
Alexis Cheuk Yan Lee
Alexis Cheuk Yan Lee - avatar
6 odpowiedzi
+ 3
It's the CSS that's responsible for styling and NOT HTML CSS supports following format : Hexadecimal colors RGB colors RGBA colors HSL colors HSLA colors Predefined Colors specified with: rgba(red, green, blue, alpha). The alpha parameter is a number between 0.0 (fully transparent) and 1.0 (fully opaque) Ur color picker tool is picking colors in RGBA or ARGB color, set it to pick in Hex Color format
7th Jun 2016, 5:07 PM
K R Hitesh
K R Hitesh - avatar
+ 2
#FFF4124A this is colors format used in Android . First two FF(Alpha) and rest is Hex code 4124A Hex code = #0000FF (blue) Values takes 00-FF RGB = rgb(0,0,255) blue 0-255 RGBA = rgba(0,0,255,0.5) blue color with 50% opacity Alpha takes 0.0-1.0
8th Jun 2016, 4:37 AM
K R Hitesh
K R Hitesh - avatar
+ 1
hmm that's weird, because it is true that there can only be 6 digits in hex colors, the colors you have written may not be hex, because the "#" is missing in front, there are several other ways to "programm" colors like rgb,...
6th Jun 2016, 6:04 PM
Kamil
Kamil - avatar
+ 1
What image editor was that? And if hex codes cover millions of colors why would you need more digits?
6th Jun 2016, 11:19 PM
ZinC
ZinC - avatar
+ 1
25062019 to Hitest and all: - yes, it's css style in html codes; in most of my html styling, I use hex digits plus opacity; - in my question, years ago, I picked colors from 'text editor'. It gave the said 7 digits. Might be hex format plus opacity in the front. I had tried switching the front char, 0 to F. - So it was hex format alright. Still doubt if html can take 7 digits? perhaps not.
25th Jun 2019, 9:34 AM
Alexis Cheuk Yan Lee
Alexis Cheuk Yan Lee - avatar
0
@K.R Hitesh They are called html colors.. not that html is doing the styling. And how is FFF4124A an rgba color. The alpha channel is an opacity channel, not really a color. And there are no letters in rgb colors.
7th Jun 2016, 7:45 PM
ZinC
ZinC - avatar