kestrell: (Default)
Kestrell ([personal profile] kestrell) wrote2020-10-01 09:15 am
Entry tags:

Here it is, the big scary question: what color is this?

You would think that, web developers having assigned numeric values to colors, that these systems would be precise, or even reliable...okay, perhaps somewhat predictable?

Not so!

I'm not asking for weird girl colors: all I wanted was forest green text on a cream background.

I fially got a result of forest green for at least the h1 heading.

Cream has been a lot more adventurous. Using the hex, rgb, or even the color name "cream," I have gotten lemon chiffon, gray, and default white. I even tried settling for cornsilk, but that gave me bisque. And bisque can be another weeny color word that varies from off-white to beige, which are even more variable as colors categories.

So, can I borrow some eyeballs out there? (I promise to let you keep the tooth.)
What colors are on this webpage: https://kestrell7.github.io

[personal profile] ceraphiic 2020-10-01 02:49 pm (UTC)(link)
You can write RGB colors in any of these formats as they're all valid:
rgb(red green blue)
rgb(red, green, blue)
rgb(red,green,blue)

If you want to adjust the transparency, add an alpha channel:
rgba(red green blue / alpha)
rgba(red, green, blue, alpha)
rgba(red,green,blue,alpha)

Just replace alpha with either a number between 0 and 1, or a percentage:
rgba(255 0 0 / .1) and rgba(255, 0, 0, 10%) are both    .
rgba(255 0 0 / .5) and rgba(255, 0, 0, 50%) are both    .
rgba(255 0 0 / 1) and rgba(255, 0, 0, 100%) are both    .

I know that's a lot more than you asked for, but there really are many different ways to write RGB colors. Just use whichever you feel most comfortable with, is my advice.

[personal profile] ceraphiic 2020-10-01 03:03 pm (UTC)(link)
Glad I could help! :D