#3e2272 Color
Color Codes | |
---|---|
Hex Code | #3e2272 |
RGB Code | rgb(62, 34, 114) |
HSL Code | hsl(261, 54%, 29%) |
#3e2272 Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(62, 34, 114); }
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(261, 54%, 29%); }
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 #3e2272
RGB Code | Hex Code | Preview |
---|---|---|
rgb(62, 34, 114, 10%) | #3e22721a | |
rgb(62, 34, 114, 20%) | #3e227233 | |
rgb(62, 34, 114, 40%) | #3e22724C | |
rgb(62, 34, 114, 60%) | #3e227299 | |
rgb(62, 34, 114, 80%) | #3e2272CC | |
rgb(62, 34, 114, 100%) | #3e2272FF |
Saturated and desaturated colors of #3e2272
HSL Code | Preview |
---|---|
hsl(261, 10%, 29%) | |
hsl(261, 20%, 29%) | |
hsl(261, 40%, 29%) | |
hsl(261, 60%, 29%) | |
hsl(261, 80%, 29%) | |
hsl(261, 100%, 29%) |
#3e2272 Color Usage In CSS
body { color: #3e2272; } p { color: rgb(62, 34, 114); } header { border-bottom:1px solid #3e2272; }