#6d1ea9 Color
Color Codes | |
---|---|
Hex Code | #6d1ea9 |
RGB Code | rgb(109, 30, 169) |
HSL Code | hsl(274, 70%, 39%) |
#6d1ea9 Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(109, 30, 169); }
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, 70%, 39%); }
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 #6d1ea9
RGB Code | Hex Code | Preview |
---|---|---|
rgb(109, 30, 169, 10%) | #6d1ea91a | |
rgb(109, 30, 169, 20%) | #6d1ea933 | |
rgb(109, 30, 169, 40%) | #6d1ea94C | |
rgb(109, 30, 169, 60%) | #6d1ea999 | |
rgb(109, 30, 169, 80%) | #6d1ea9CC | |
rgb(109, 30, 169, 100%) | #6d1ea9FF |
Saturated and desaturated colors of #6d1ea9
HSL Code | Preview |
---|---|
hsl(274, 10%, 39%) | |
hsl(274, 20%, 39%) | |
hsl(274, 40%, 39%) | |
hsl(274, 60%, 39%) | |
hsl(274, 80%, 39%) | |
hsl(274, 100%, 39%) |
#6d1ea9 Color Usage In CSS
body { color: #6d1ea9; } p { color: rgb(109, 30, 169); } header { border-bottom:1px solid #6d1ea9; }