#5f1ead Color
Color Codes | |
---|---|
Hex Code | #5f1ead |
RGB Code | rgb(95, 30, 173) |
HSL Code | hsl(267, 70%, 40%) |
#5f1ead Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(95, 30, 173); }
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(267, 70%, 40%); }
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 #5f1ead
RGB Code | Hex Code | Preview |
---|---|---|
rgb(95, 30, 173, 10%) | #5f1ead1a | |
rgb(95, 30, 173, 20%) | #5f1ead33 | |
rgb(95, 30, 173, 40%) | #5f1ead4C | |
rgb(95, 30, 173, 60%) | #5f1ead99 | |
rgb(95, 30, 173, 80%) | #5f1eadCC | |
rgb(95, 30, 173, 100%) | #5f1eadFF |
Saturated and desaturated colors of #5f1ead
HSL Code | Preview |
---|---|
hsl(267, 10%, 40%) | |
hsl(267, 20%, 40%) | |
hsl(267, 40%, 40%) | |
hsl(267, 60%, 40%) | |
hsl(267, 80%, 40%) | |
hsl(267, 100%, 40%) |
#5f1ead Color Usage In CSS
body { color: #5f1ead; } p { color: rgb(95, 30, 173); } header { border-bottom:1px solid #5f1ead; }