#7d318c Color
Color Codes | |
---|---|
Hex Code | #7d318c |
RGB Code | rgb(125, 49, 140) |
HSL Code | hsl(290, 48%, 37%) |
#7d318c Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(125, 49, 140); }
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(290, 48%, 37%); }
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 #7d318c
RGB Code | Hex Code | Preview |
---|---|---|
rgb(125, 49, 140, 10%) | #7d318c1a | |
rgb(125, 49, 140, 20%) | #7d318c33 | |
rgb(125, 49, 140, 40%) | #7d318c4C | |
rgb(125, 49, 140, 60%) | #7d318c99 | |
rgb(125, 49, 140, 80%) | #7d318cCC | |
rgb(125, 49, 140, 100%) | #7d318cFF |
Saturated and desaturated colors of #7d318c
HSL Code | Preview |
---|---|
hsl(290, 10%, 37%) | |
hsl(290, 20%, 37%) | |
hsl(290, 40%, 37%) | |
hsl(290, 60%, 37%) | |
hsl(290, 80%, 37%) | |
hsl(290, 100%, 37%) |
#7d318c Color Usage In CSS
body { color: #7d318c; } p { color: rgb(125, 49, 140); } header { border-bottom:1px solid #7d318c; }