#4d155c Color
Color Codes | |
---|---|
Hex Code | #4d155c |
RGB Code | rgb(77, 21, 92) |
HSL Code | hsl(287, 63%, 22%) |
#4d155c Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(77, 21, 92); }
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(287, 63%, 22%); }
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 #4d155c
RGB Code | Hex Code | Preview |
---|---|---|
rgb(77, 21, 92, 10%) | #4d155c1a | |
rgb(77, 21, 92, 20%) | #4d155c33 | |
rgb(77, 21, 92, 40%) | #4d155c4C | |
rgb(77, 21, 92, 60%) | #4d155c99 | |
rgb(77, 21, 92, 80%) | #4d155cCC | |
rgb(77, 21, 92, 100%) | #4d155cFF |
Saturated and desaturated colors of #4d155c
HSL Code | Preview |
---|---|
hsl(287, 10%, 22%) | |
hsl(287, 20%, 22%) | |
hsl(287, 40%, 22%) | |
hsl(287, 60%, 22%) | |
hsl(287, 80%, 22%) | |
hsl(287, 100%, 22%) |
#4d155c Color Usage In CSS
body { color: #4d155c; } p { color: rgb(77, 21, 92); } header { border-bottom:1px solid #4d155c; }