#6d2aba Color
Color Codes | |
---|---|
Hex Code | #6d2aba |
RGB Code | rgb(109, 42, 186) |
HSL Code | hsl(268, 63%, 45%) |
#6d2aba Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(109, 42, 186); }
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(268, 63%, 45%); }
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 #6d2aba
RGB Code | Hex Code | Preview |
---|---|---|
rgb(109, 42, 186, 10%) | #6d2aba1a | |
rgb(109, 42, 186, 20%) | #6d2aba33 | |
rgb(109, 42, 186, 40%) | #6d2aba4C | |
rgb(109, 42, 186, 60%) | #6d2aba99 | |
rgb(109, 42, 186, 80%) | #6d2abaCC | |
rgb(109, 42, 186, 100%) | #6d2abaFF |
Saturated and desaturated colors of #6d2aba
HSL Code | Preview |
---|---|
hsl(268, 10%, 45%) | |
hsl(268, 20%, 45%) | |
hsl(268, 40%, 45%) | |
hsl(268, 60%, 45%) | |
hsl(268, 80%, 45%) | |
hsl(268, 100%, 45%) |
#6d2aba Color Usage In CSS
body { color: #6d2aba; } p { color: rgb(109, 42, 186); } header { border-bottom:1px solid #6d2aba; }