#5f1c30 Color
Color Codes | |
---|---|
Hex Code | #5f1c30 |
RGB Code | rgb(95, 28, 48) |
HSL Code | hsl(342, 54%, 24%) |
#5f1c30 Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(95, 28, 48); }
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(342, 54%, 24%); }
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 #5f1c30
RGB Code | Hex Code | Preview |
---|---|---|
rgb(95, 28, 48, 10%) | #5f1c301a | |
rgb(95, 28, 48, 20%) | #5f1c3033 | |
rgb(95, 28, 48, 40%) | #5f1c304C | |
rgb(95, 28, 48, 60%) | #5f1c3099 | |
rgb(95, 28, 48, 80%) | #5f1c30CC | |
rgb(95, 28, 48, 100%) | #5f1c30FF |
Saturated and desaturated colors of #5f1c30
HSL Code | Preview |
---|---|
hsl(342, 10%, 24%) | |
hsl(342, 20%, 24%) | |
hsl(342, 40%, 24%) | |
hsl(342, 60%, 24%) | |
hsl(342, 80%, 24%) | |
hsl(342, 100%, 24%) |
#5f1c30 Color Usage In CSS
body { color: #5f1c30; } p { color: rgb(95, 28, 48); } header { border-bottom:1px solid #5f1c30; }