#6d2dae Color
Color Codes | |
---|---|
Hex Code | #6d2dae |
RGB Code | rgb(109, 45, 174) |
HSL Code | hsl(270, 59%, 43%) |
#6d2dae Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(109, 45, 174); }
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(270, 59%, 43%); }
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 #6d2dae
RGB Code | Hex Code | Preview |
---|---|---|
rgb(109, 45, 174, 10%) | #6d2dae1a | |
rgb(109, 45, 174, 20%) | #6d2dae33 | |
rgb(109, 45, 174, 40%) | #6d2dae4C | |
rgb(109, 45, 174, 60%) | #6d2dae99 | |
rgb(109, 45, 174, 80%) | #6d2daeCC | |
rgb(109, 45, 174, 100%) | #6d2daeFF |
Saturated and desaturated colors of #6d2dae
HSL Code | Preview |
---|---|
hsl(270, 10%, 43%) | |
hsl(270, 20%, 43%) | |
hsl(270, 40%, 43%) | |
hsl(270, 60%, 43%) | |
hsl(270, 80%, 43%) | |
hsl(270, 100%, 43%) |
#6d2dae Color Usage In CSS
body { color: #6d2dae; } p { color: rgb(109, 45, 174); } header { border-bottom:1px solid #6d2dae; }