ColorsColors
Color Keywords/Names 140 color keywords/names are defined in the HTML and CSS color specification –17 standard colors (HTML accepts 16 of 17 – excluding “orange”) –123 additional colors (CSS only) – US/docs/Web/CSS/color_valuehttps://developer.mozilla.org/en- US/docs/Web/CSS/color_value
17 Standard Color Keywords Aqua - #00FFFF Black - # Blue - #0000FF Fuchsia - #FF00FF Gray - # Green - # Lime - #00FF00 Maroon - # Navy - # Olive - # Orange - #FFA500 Purple - # Red - #FF0000 Silver - #C0C0C0 Teal - # White - #FFFFFF Yellow - #FFFF00
17 Standard Color Keywords
Color Property Format (RGB) RGB = Red Green Blue h1 { color: #f00 } /* #rgb */ h1 { color: #ff0000 } /* #rrggbb */ h1 { color: rgb(255,0,0) } h1 { color: rgb(100%, 0%, 0%) } rgb(255,255,255) = #FFF rgb(100%,100%,100%) = #FFF
Color Property Format (RGBA) RGBA = Red Green Blue Alpha(opacity) –Alpha values spans from 0.0 to 1.0 –0.0 = Fully Transparent –1.0 = Fully Opaque rgba(255,0,0,0.0) rgba(123,45,67,1.0) rgba(89,255,31,0.5)