#6b17ac Color
Color Codes | |
---|---|
Hex Code | #6b17ac |
RGB Code | rgb(107, 23, 172) |
HSL Code | hsl(274, 76%, 38%) |
#6b17ac Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(107, 23, 172); }
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(274, 76%, 38%); }
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 #6b17ac
RGB Code | Hex Code | Preview |
---|---|---|
rgb(107, 23, 172, 10%) | #6b17ac1a | |
rgb(107, 23, 172, 20%) | #6b17ac33 | |
rgb(107, 23, 172, 40%) | #6b17ac4C | |
rgb(107, 23, 172, 60%) | #6b17ac99 | |
rgb(107, 23, 172, 80%) | #6b17acCC | |
rgb(107, 23, 172, 100%) | #6b17acFF |
Saturated and desaturated colors of #6b17ac
HSL Code | Preview |
---|---|
hsl(274, 10%, 38%) | |
hsl(274, 20%, 38%) | |
hsl(274, 40%, 38%) | |
hsl(274, 60%, 38%) | |
hsl(274, 80%, 38%) | |
hsl(274, 100%, 38%) |
#6b17ac Color Usage In CSS
body { color: #6b17ac; } p { color: rgb(107, 23, 172); } header { border-bottom:1px solid #6b17ac; }