
Border color can be set on sides independently with border-top-color, border-right-color, border-bottom-color, and border-left-color.īorder-color: red green blue black is the same as border-top-color: red border-right-color: green border-bottom-color: blue border-left-color: black, for example. Tip: If hexadecimal code of a color has value pairs, it can also be written in shorthand notation to avoid extra typing, for example, the hex color value ffffff can be also be written as fff, 000000 as 000, 00ff00 as 0f0, ffcc00 as fc0, and so on. Background-color values can be expressed using rgb such as rgb (255,255,255), rgb (0,0,0), and rgb (255,0,0). This color has an approximate wavelength of 491.41 nm.


In the HSL color space ccffff has a hue of 180° (degrees), 100 saturation and 90 lightness. In the RGB color model ccffff is comprised of 80 red, 100 green and 100 blue. Background-color values can be expressed in hexadecimal values such as FFFFFF, 000000, and FF0000. The hexadecimal color code ccffff / cff is a very light shade of cyan.

Link To Us! If you've found HTML Dog useful, please consider linking to us.īorder-color is itself a shorthand property. The value in the CSS background-color property can be expressed as a hexadecimal value, rgb value, or as a named color.
