Need help with unknown color hex codes |
Need help with unknown color hex codes |
SaladGoat |
Dec 1 2020, 09:24 PM
Post
#1
|
Group: Members Posts: 3 Joined: 1-December 20 Member No.: 27,665 |
I was asked to help a friend with his website, that he created years ago by copying other sites and adding his own content (he has no idea what he is doing with html).
There's a lot of garbage in there, and I'm removing a lot of html and converting to css. But the most baffling are these color codes I found that shouldn't work, but do. <body bgcolor="black" text="#FFFAFA" link="#DIC597" alink="red" vlink="#PQ5678"> I googled the link colour: DIC597 and found a colour palette that is probably for paint? It was a bright yellow, so not the right colour. Now if we accept that browsers (Firefox and Chrome, at least) will correct mistakes, you could change the I to a 1 and that would be a valid color hex code ... and that is the colour that the browsers show. But what about the vlink colour? PQ doesn't look like anything in the hex code limitations. Googling it gets me nowhere. And the browsers are "correcting" it because it's not the default purple/violet. Go ahead and try it. It's baffling. But maybe someone here has seen this sorta thing before? Or maybe you can guess what the browsers are translating it to? I'd like to keep his colours, but using either of these in css causes it to revert to the default colours! Weird that the browsers will fix it if it's html but not if it's css. I don't know what the second colour is, so I'd really like some help identifying that, based on the "hex code". Thanks! |
pandy |
Dec 2 2020, 12:03 AM
Post
#2
|
🌟Computer says no🌟 Group: WDG Moderators Posts: 20,730 Joined: 9-August 06 Member No.: 6 |
#SaladGoat is a rather irritating green.
I remember this from back in the day. There is an explanation, but I've forgotten. I should have a note about it, but can't find it. I don't think I've ever known why it doesn't happen with CSS colors though. Maybe some validation is done. BTW, you don't even need the hash sign. As for your problem, can't you just use a color picker and sample the color you want? Make it a background color and you'll have larger area to pick from. |
SaladGoat |
May 28 2022, 12:09 PM
Post
#3
|
Group: Members Posts: 3 Joined: 1-December 20 Member No.: 27,665 |
It's a lovely green! 😛
QUOTE There is an explanation, but I've forgotten. I should have a note about it, but can't find it. Jeez, what good are you?! 😂 Yeah, it wasn't so much about finding out what colours they were, but why they were rendering at all instead of falling back to the default browser colours. (Yes, I'm aware the hashtag is not needed, but it's "proper" so I keep it. Good practices and all that. 🤷♂️ ) In fact, I believe I have figured it out, thanks to your note about #SaladGoat being green. #SaladGoat renders as #0aad0a - substitute a zero for the first unknown letter (S), the a's are valid, substitute a zero for the O, ignore other characters and truncate after six characters, and you get this hex colour. Playing around with other words, it seems that's exactly what the browsers do: substitute zeros for unknown characters, use the valid characters, and match zeros to O's or ones to I's or L's. In the case of #PQ5678, changing it to #005678 gives the same colour. And if there aren't enough letters - say, in #pandy 😉 - it just adds a zero: #0a0d00 Even though you didn't have the answer, you got me on track to figure it out, so thanks for that! 👍 |
pandy |
May 28 2022, 02:33 PM
Post
#4
|
🌟Computer says no🌟 Group: WDG Moderators Posts: 20,730 Joined: 9-August 06 Member No.: 6 |
1½ years later you come back and tell us? Thanks.
|
Christian J |
May 28 2022, 04:56 PM
Post
#5
|
. Group: WDG Moderators Posts: 9,656 Joined: 10-August 06 Member No.: 7 |
Seems all my browsers support this, it must have been considered a top priority back in the days.
Excellent finding, and thanks for letting us know. |
pandy |
May 29 2022, 10:15 AM
Post
#6
|
🌟Computer says no🌟 Group: WDG Moderators Posts: 20,730 Joined: 9-August 06 Member No.: 6 |
I didn't get the bit about "ones to I's or L's" though?
|
Christian J |
May 29 2022, 10:26 AM
Post
#7
|
. Group: WDG Moderators Posts: 9,656 Joined: 10-August 06 Member No.: 7 |
Maybe it's because I:s and lowercase L:s look similar to 1?
Disappointingly, #ssssss does not equal #555555. |
pandy |
May 29 2022, 06:50 PM
Post
#8
|
🌟Computer says no🌟 Group: WDG Moderators Posts: 20,730 Joined: 9-August 06 Member No.: 6 |
Maybe it's because I:s and lowercase L:s look similar to 1? To a computer? QUOTE Disappointingly, #ssssss does not equal #555555. Yeah. I'll search my notes. I know I've written down the scientific explanation, was discussed on some mailing list. But it's probably 20 years ago and I don't know what to search for or what heading I may have given this note. |
Christian J |
May 30 2022, 03:12 PM
Post
#9
|
. Group: WDG Moderators Posts: 9,656 Joined: 10-August 06 Member No.: 7 |
|
pandy |
May 30 2022, 05:02 PM
Post
#10
|
🌟Computer says no🌟 Group: WDG Moderators Posts: 20,730 Joined: 9-August 06 Member No.: 6 |
AI is a little tiresome, but I was seriously impressed by it the other day. I read an article about how they identify Russian soldiers that have committed war crimes. They have a pesky mobile shot or similar of the guy, maybe with helmet and lots of gear that obscure his handsome looks, feed it to a program that trawls the net, social media and such, and with luck they have a hit within a minute or two
I have an image cataloguer that uses AI for face recognition. It works in the background and sort photos with people in them in stacks. Then I have to OK them and name the stack. It's pretty accurate. I'd say it gets about 90% right, considerably more with good photos. But sometimes it gets all crazy. For instance almost all photos of myself, which aren't many, and a female friend of mine gets sorted with an elderly guy. We don't think we look like him at all! Neither do we look like each other. I guess the pro programs are so much better and considering the consumer programs are pretty good there will be nowhere to hide soon. 🥶 |
Christian J |
May 31 2022, 06:35 AM
Post
#11
|
. Group: WDG Moderators Posts: 9,656 Joined: 10-August 06 Member No.: 7 |
I wonder how well face recognition works if you're wearing a Covid-style mask...
|
pandy |
Jun 1 2022, 07:03 AM
Post
#12
|
🌟Computer says no🌟 Group: WDG Moderators Posts: 20,730 Joined: 9-August 06 Member No.: 6 |
Not too bad, I think. My program managed to sort picture of a guy that used to have really large whole beard and then shaved it off correctly. It also got people with black sunglasses right.
But in general, according to the documentation, at least my program works with distances. Between the eyes, from eye to mouth, that kind of things. So hiding the mouth or eyes should make it less probably to get a hit, but not impossible I think. I don't know if the pro programs work the same way. |
Lo-Fi Version | Time is now: 26th April 2024 - 03:42 AM |