#6c1742 Color
Color Codes | |
---|---|
Hex Code | #6c1742 |
RGB Code | rgb(108, 23, 66) |
HSL Code | hsl(330, 65%, 26%) |
#6c1742 Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(108, 23, 66); }
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(330, 65%, 26%); }
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 #6c1742
RGB Code | Hex Code | Preview |
---|---|---|
rgb(108, 23, 66, 10%) | #6c17421a | |
rgb(108, 23, 66, 20%) | #6c174233 | |
rgb(108, 23, 66, 40%) | #6c17424C | |
rgb(108, 23, 66, 60%) | #6c174299 | |
rgb(108, 23, 66, 80%) | #6c1742CC | |
rgb(108, 23, 66, 100%) | #6c1742FF |
Saturated and desaturated colors of #6c1742
HSL Code | Preview |
---|---|
hsl(330, 10%, 26%) | |
hsl(330, 20%, 26%) | |
hsl(330, 40%, 26%) | |
hsl(330, 60%, 26%) | |
hsl(330, 80%, 26%) | |
hsl(330, 100%, 26%) |
#6c1742 Color Usage In CSS
body { color: #6c1742; } p { color: rgb(108, 23, 66); } header { border-bottom:1px solid #6c1742; }