This Blog is for HTML Tutorials.

HTML Logo

HTML Colors/Colours

HTML colors are specified using predefined color names, or RGB, HEX, HSL, RGBA, HSLA values.


Color/Colours Names


In HTML, a color can be specified by using a color name.
Color-Name

Like - 

Tomato 
Orange
Violet


Note -HTML supports 140 Standard Colors name.


RGB & RGBA Colors/Colours


R stand for “Red”

G stand for “Green”

B stand for “Blue”

A stand for “Alpha”



Each parameter in RGB defines the intensity of the color between 0 and 255. There are possible 16777216 colors! = 256 * 256 * 256


 


In RGBA, an alpha parameter is a number between 0.0 (fully transparent) and 1.0 (not transparent at all).




RGBA-Colors


Know more about RGB & RGBA Calculator.

HTML HEX Colors


It is specified with #rrggbb (A Hexadecimal Color). Where Rr – red    Gg – green   Bb – blue

Hex value is between 00 and ff (same as decimal 0-255).

HEX-Colors


Know more about HEX Calculator.


HTML HSL & HSLA Colors


H stand for “Hue” (Hue is a degree on the color wheel from 0 to 360.)

S stand for “Saturation” (Saturation is a percentage value, 0% means a shade of gray, and 100% is the full color.)

L stand for “Lightness” (Lightness is also a percentage, 0% is black, 50% is neither light or dark, 100% is white.)

A stand for “Alpha” [A parameter is a number between 0.0 (fully transparent) and 1.0 (not transparent at all).]

HSLA-Colors



Know more about HSL & HSLA Calculator.


HTML-Colors-Prac

Post a Comment

0 Comments