This is Sasha and welcome to another training video on CSS and today we’re going to take a look at color so that way you know how to edit your business website colors. Let’s take a look.
When we’re looking at colors, this is ultimately where most people are looking at in order to modify their stylesheets. For many people, they’re looking at the colors and you have these basic colors that you could put in which I think I believe are 16 basic colors when it comes to the general website colors. But you might not want to create a, let’s say, background color for that exact color.
You might want like right here we have a pink but it’s not maybe the pink that we want so it doesn’t look very good. The same thing if we go to just adding a basic color and you go into typing pink right here or if you want something in between you type in red. Well, I want something maybe in between red and then between pink. Well, how do you do that? Like how do you create that color?
--------------------- HTML CODE --------------------------------------- CSS CODE ------------------ h2, p { color:red; } h2, ul {font-size: 30px;} p {font-size: 17px;}Backstageincome : Learn to grow a business and evolve your life! These are my books and products
Thank you for visiting

The way that you go about doing this is you need a CSS color picker. Now, you can use the one from Google, it works just fine. What you could do is that slide right here or maybe you could do right here. You play with the colors. You could also use Photoshop.

Using a color picker
Let’s say you want a red something like around this level. Well, there’s no real color name for that. Ultimately what you do is you go and take this RGB value. That is typically the standard. If I go ahead and type RGB 209, 29, 83 with the commas, go ahead add a semicolon, go ahead and save that. Ultimately, this is going to output that exact colors. You can see it right there. Look at that color. It matches exactly that number.
--------------------- HTML CODE --------------------------------------- CSS CODE ------------------ h2, p { color: rgb(209, 29, 83); } h2, ul {font-size: 30px;} p {font-size: 17px;}Backstageincome : Learn to grow a business and evolve your life! These are my books and products
Thank you for visiting

It’s important to understand that with this color code values it goes up to 255 is the maximum on any of these values or ultimately 0. 0,0,0 which you can see right here on the RGB value scale. This is how many people go ahead and write their code. If you want to go ahead and make some changes, you could just make these adjustments. Let’s just say instead of this color value, I’ll go ahead and drop this to 45 and you’ll see here in the second how it makes that slight little change.
You might not be able to see it but let’s say if I go to 100 right here and refresh the website, you’ll see or 222, go ahead and you’ll see if I go to 39 and make that change again you’ll see. I don’t personally know these – the color of values completely I look them up but for you, you know, as you know one or memorize one, you can go ahead and use that.
Understanding RGB values
There’s one other important point to understand when it comes to RGB values and that is the RGB alpha values. You can right there RGB A so that’s the alpha value that you go ahead and add in and what you do there is you add a comma and I’ll go ahead and type in one. That means it’s fully transparent. Alpha is just meaning transparent and with a one there’s no transparency.
But if I go with, let’s say, 0.4, you should see how transparent that is and since we’ve effect the P tag as well, you can see it’s slightly transparent. If I just go ahead and just type – let’s just type in the body background color and we’ll just do yellow, okay? You can see it’s somewhat transparent as you zoom in for that yellow even though we have kind of a red tone there.
--------------------- HTML CODE --------------------------------------- CSS CODE ------------------ body {background: yellow;} h2, p { color: rgba(165, 21, 64, 0.4); } h2, ul {font-size: 30px;} p {font-size: 17px;}Backstageincome : Learn to grow a business and evolve your life! These are my books and products
Thank you for visiting

Using HEX colors
That’s ultimately what you do as far as the RGB alpha goes as you could add in the transparency. Now for many people when they choose color values, they actually use the hex code which is this number and it’s usually defined by six values.
--------------------- HTML CODE --------------------------------------- CSS CODE ------------------ body {background: pink;} h2, p { color: #a51540; } h2, ul {font-size: 30px;} p {font-size: 17px;}Backstageincome : Learn to grow a business and evolve your life! These are my books and products
Thank you for visiting

Instead what I can do instead of that RGB value, I could go ahead and just type in that hex code number right there and there it is and obviously you can see with my ugly yellow background right there or pink background how it makes that change but there is no alphabets included here with the hex codes.
It’s a tradeoff but most people they do use the hex code value because it’s a little bit easier. You just pull the hex number out. If I wanted it to be kind of like, let’s say, a green value kind of like this, I’ll just take this hex code right there, I’ll go ahead, save it and you can see that change within that green text.
--------------------- HTML CODE --------------------------------------- CSS CODE ------------------ body {background: white;} h2, p { color: #3baf6e; } h2, ul {font-size: 30px;} p {font-size: 17px;}Backstageincome : Learn to grow a business and evolve your life! These are my books and products
Thank you for visiting

I’ll be using these values from now on as we continue through the training lessons. But you can see how it’s really easy to make those changes and modifications right there. You can see we’ve affected both elements, the heading tag and the P tag or paragraph tag. I’ll go ahead save that on the heading tag only and now you can see only the headings are green.