#9122dd Color
Color Codes | |
---|---|
Hex Code | #9122dd |
RGB Code | rgb(145, 34, 221) |
HSL Code | hsl(276, 73%, 50%) |
#9122dd Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(145, 34, 221); }
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(276, 73%, 50%); }
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 #9122dd
RGB Code | Hex Code | Preview |
---|---|---|
rgb(145, 34, 221, 10%) | #9122dd1a | |
rgb(145, 34, 221, 20%) | #9122dd33 | |
rgb(145, 34, 221, 40%) | #9122dd4C | |
rgb(145, 34, 221, 60%) | #9122dd99 | |
rgb(145, 34, 221, 80%) | #9122ddCC | |
rgb(145, 34, 221, 100%) | #9122ddFF |
Saturated and desaturated colors of #9122dd
HSL Code | Preview |
---|---|
hsl(276, 10%, 50%) | |
hsl(276, 20%, 50%) | |
hsl(276, 40%, 50%) | |
hsl(276, 60%, 50%) | |
hsl(276, 80%, 50%) | |
hsl(276, 100%, 50%) |
#9122dd Color Usage In CSS
body { color: #9122dd; } p { color: rgb(145, 34, 221); } header { border-bottom:1px solid #9122dd; }