#cf291f Color
Color Codes | |
---|---|
Hex Code | #cf291f |
RGB Code | rgb(207, 41, 31) |
HSL Code | hsl(3, 74%, 47%) |
#cf291f Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(207, 41, 31); }
R(red), G(green), B(blue) can be number between 0-255.
A parameter is a hex characters (0–9, A–F) and optional.
hsl()
hsl(hue saturation lightness); hsl(hue saturation lightness / alpha); div { background-color: hsl(3, 74%, 47%); }
Saturation value is a percentage value between 0% unsaturated and 100% fully saturated.
Lightness value is a percentage value between 100% is white and 0% is black.
Lighter and darker colors of #cf291f
RGB Code | Hex Code | Preview |
---|---|---|
rgb(207, 41, 31, 10%) | #cf291f1a | |
rgb(207, 41, 31, 20%) | #cf291f33 | |
rgb(207, 41, 31, 40%) | #cf291f4C | |
rgb(207, 41, 31, 60%) | #cf291f99 | |
rgb(207, 41, 31, 80%) | #cf291fCC | |
rgb(207, 41, 31, 100%) | #cf291fFF |
Saturated and desaturated colors of #cf291f
HSL Code | Preview |
---|---|
hsl(3, 10%, 47%) | |
hsl(3, 20%, 47%) | |
hsl(3, 40%, 47%) | |
hsl(3, 60%, 47%) | |
hsl(3, 80%, 47%) | |
hsl(3, 100%, 47%) |
#cf291f Color Usage In CSS
body { color: #cf291f; } p { color: rgb(207, 41, 31); } header { border-bottom:1px solid #cf291f; }