#7f3858 Color
Color Codes | |
---|---|
Hex Code | #7f3858 |
RGB Code | rgb(127, 56, 88) |
HSL Code | hsl(333, 39%, 36%) |
#7f3858 Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(127, 56, 88); }
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(333, 39%, 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 #7f3858
RGB Code | Hex Code | Preview |
---|---|---|
rgb(127, 56, 88, 10%) | #7f38581a | |
rgb(127, 56, 88, 20%) | #7f385833 | |
rgb(127, 56, 88, 40%) | #7f38584C | |
rgb(127, 56, 88, 60%) | #7f385899 | |
rgb(127, 56, 88, 80%) | #7f3858CC | |
rgb(127, 56, 88, 100%) | #7f3858FF |
Saturated and desaturated colors of #7f3858
HSL Code | Preview |
---|---|
hsl(333, 10%, 36%) | |
hsl(333, 20%, 36%) | |
hsl(333, 40%, 36%) | |
hsl(333, 60%, 36%) | |
hsl(333, 80%, 36%) | |
hsl(333, 100%, 36%) |
#7f3858 Color Usage In CSS
body { color: #7f3858; } p { color: rgb(127, 56, 88); } header { border-bottom:1px solid #7f3858; }