#9f1851 Color
Color Codes | |
---|---|
Hex Code | #9f1851 |
RGB Code | rgb(159, 24, 81) |
HSL Code | hsl(335, 74%, 36%) |
#9f1851 Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(159, 24, 81); }
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(335, 74%, 36%); }
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 #9f1851
RGB Code | Hex Code | Preview |
---|---|---|
rgb(159, 24, 81, 10%) | #9f18511a | |
rgb(159, 24, 81, 20%) | #9f185133 | |
rgb(159, 24, 81, 40%) | #9f18514C | |
rgb(159, 24, 81, 60%) | #9f185199 | |
rgb(159, 24, 81, 80%) | #9f1851CC | |
rgb(159, 24, 81, 100%) | #9f1851FF |
Saturated and desaturated colors of #9f1851
HSL Code | Preview |
---|---|
hsl(335, 10%, 36%) | |
hsl(335, 20%, 36%) | |
hsl(335, 40%, 36%) | |
hsl(335, 60%, 36%) | |
hsl(335, 80%, 36%) | |
hsl(335, 100%, 36%) |
#9f1851 Color Usage In CSS
body { color: #9f1851; } p { color: rgb(159, 24, 81); } header { border-bottom:1px solid #9f1851; }