#cf1f3b Color
Color Codes | |
---|---|
Hex Code | #cf1f3b |
RGB Code | rgb(207, 31, 59) |
HSL Code | hsl(350, 74%, 47%) |
#cf1f3b Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(207, 31, 59); }
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(350, 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 #cf1f3b
RGB Code | Hex Code | Preview |
---|---|---|
rgb(207, 31, 59, 10%) | #cf1f3b1a | |
rgb(207, 31, 59, 20%) | #cf1f3b33 | |
rgb(207, 31, 59, 40%) | #cf1f3b4C | |
rgb(207, 31, 59, 60%) | #cf1f3b99 | |
rgb(207, 31, 59, 80%) | #cf1f3bCC | |
rgb(207, 31, 59, 100%) | #cf1f3bFF |
Saturated and desaturated colors of #cf1f3b
HSL Code | Preview |
---|---|
hsl(350, 10%, 47%) | |
hsl(350, 20%, 47%) | |
hsl(350, 40%, 47%) | |
hsl(350, 60%, 47%) | |
hsl(350, 80%, 47%) | |
hsl(350, 100%, 47%) |
#cf1f3b Color Usage In CSS
body { color: #cf1f3b; } p { color: rgb(207, 31, 59); } header { border-bottom:1px solid #cf1f3b; }