#7921ea Color
Color Codes | |
---|---|
Hex Code | #7921ea |
RGB Code | rgb(121, 33, 234) |
HSL Code | hsl(266, 83%, 52%) |
#7921ea Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(121, 33, 234); }
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(266, 83%, 52%); }
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 #7921ea
RGB Code | Hex Code | Preview |
---|---|---|
rgb(121, 33, 234, 10%) | #7921ea1a | |
rgb(121, 33, 234, 20%) | #7921ea33 | |
rgb(121, 33, 234, 40%) | #7921ea4C | |
rgb(121, 33, 234, 60%) | #7921ea99 | |
rgb(121, 33, 234, 80%) | #7921eaCC | |
rgb(121, 33, 234, 100%) | #7921eaFF |
Saturated and desaturated colors of #7921ea
HSL Code | Preview |
---|---|
hsl(266, 10%, 52%) | |
hsl(266, 20%, 52%) | |
hsl(266, 40%, 52%) | |
hsl(266, 60%, 52%) | |
hsl(266, 80%, 52%) | |
hsl(266, 100%, 52%) |
#7921ea Color Usage In CSS
body { color: #7921ea; } p { color: rgb(121, 33, 234); } header { border-bottom:1px solid #7921ea; }